Skip to content

Commit e98e1b8

Browse files
committed
ch: add Test to BUILD_TYPE
1 parent 8c91291 commit e98e1b8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

bin/ch/WScriptJsrt.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -789,8 +789,10 @@ bool WScriptJsrt::Initialize()
789789
JsValueRef buildValue;
790790
#ifdef _DEBUG
791791
#define BUILD_TYPE_STRING_CH "Debug" // (O0)
792+
#elif defined(ENABLE_DEBUG_CONFIG_OPTIONS)
793+
#define BUILD_TYPE_STRING_CH "Test" // (O3 with debug config options)
792794
#else
793-
#define BUILD_TYPE_STRING_CH "Release" // consider Test is also Release build (O3)
795+
#define BUILD_TYPE_STRING_CH "Release" // (O3)
794796
#endif
795797
IfJsrtErrorFail(ChakraRTInterface::JsCreateString(
796798
BUILD_TYPE_STRING_CH, strlen(BUILD_TYPE_STRING_CH), &buildValue), false);

0 commit comments

Comments
 (0)