Commit 5206e88 1 parent d31009e commit 5206e88 Copy full SHA for 5206e88
File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -29,13 +29,15 @@ set(CMAKE_VERBOSE_MAKEFILE ON)
29
29
# ==12635== by 0x4896564: (below main) (libc-start.c:332)
30
30
string (REGEX MATCH "Linux" PROJECT_OS_LINUX ${CMAKE_SYSTEM_NAME} )
31
31
32
- # Use -O2 by now until we can find why string_function is NULL
33
32
if (PROJECT_OS_LINUX)
33
+ # -O3 not supported, use -O2 by now until we can find why string_function is NULL
34
34
set (CMAKE_C_FLAGS_RELEASE "-O2" )
35
35
set (CMAKE_CXX_FLAGS_RELEASE "-O2" )
36
36
elseif (WIN32 )
37
- # set(CMAKE_C_FLAGS_RELEASE "/O1")
38
- # set(CMAKE_CXX_FLAGS_RELEASE "/O1")
37
+ # /O2 and /O2b not supported, use /O1 /Ob1 by now until we
38
+ # can find why string_function is an non-NULL invalid pointer
39
+ set (CMAKE_C_FLAGS_RELEASE "/O1" )
40
+ set (CMAKE_CXX_FLAGS_RELEASE "O1" )
39
41
endif ()
40
42
41
43
# Default build type
You can’t perform that action at this time.
0 commit comments