File tree Expand file tree Collapse file tree 2 files changed +11
-10
lines changed Expand file tree Collapse file tree 2 files changed +11
-10
lines changed Original file line number Diff line number Diff line change 1
1
cmake_minimum_required (VERSION 3.2 )
2
2
project (CHAKRACORE )
3
3
4
+ set (CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O3 -g" )
5
+
4
6
# Keep CMake from caching static/shared library
5
7
# option. Otherwise, CMake fails to update cached
6
8
# references
@@ -402,19 +404,12 @@ if(CMAKE_BUILD_TYPE STREQUAL Debug)
402
404
-D_DEBUG=1 # for PAL
403
405
-DDBG_DUMP=1
404
406
)
405
- elseif (CMAKE_BUILD_TYPE STREQUAL Test )
407
+ elseif (CMAKE_BUILD_TYPE STREQUAL RelWithDebInfo )
406
408
add_definitions (
407
409
-DENABLE_DEBUG_CONFIG_OPTIONS=1
408
410
)
409
- add_compile_options (-g )
410
411
endif (CMAKE_BUILD_TYPE STREQUAL Debug )
411
412
412
- if (NOT CMAKE_BUILD_TYPE STREQUAL Debug )
413
- add_compile_options (-O3 )
414
- else ()
415
- add_compile_options (-O0 )
416
- endif (NOT CMAKE_BUILD_TYPE STREQUAL Debug )
417
-
418
413
if (IS_64BIT_BUILD )
419
414
add_definitions (
420
415
-DBIT64=1
Original file line number Diff line number Diff line change @@ -203,7 +203,7 @@ while [[ $# -gt 0 ]]; do
203
203
;;
204
204
205
205
-t | --test-build)
206
- BUILD_TYPE=" Test "
206
+ BUILD_TYPE=" RelWithDebInfo "
207
207
;;
208
208
209
209
-j | --jobs)
@@ -579,7 +579,13 @@ if [[ $HAS_LTTNG == 1 ]]; then
579
579
fi
580
580
581
581
582
- BUILD_DIRECTORY=" ${TARGET_PATH} /${BUILD_TYPE: 0} "
582
+ if [[ ${BUILD_TYPE} =~ " RelWithDebInfo" ]]; then
583
+ BUILD_TYPE_DIR=Test
584
+ else
585
+ BUILD_TYPE_DIR=${BUILD_TYPE}
586
+ fi
587
+
588
+ BUILD_DIRECTORY=" ${TARGET_PATH} /${BUILD_TYPE_DIR: 0} "
583
589
echo " Build path: ${BUILD_DIRECTORY} "
584
590
585
591
BUILD_RELATIVE_DIRECTORY=$( " $PYTHON2_BINARY " -c " import os.path;print \
You can’t perform that action at this time.
0 commit comments