diff options
author | Mike McLaughlin <mikem@microsoft.com> | 2016-03-01 13:58:43 -0800 |
---|---|---|
committer | Mike McLaughlin <mikem@microsoft.com> | 2016-03-01 13:58:43 -0800 |
commit | d0d5891047731af024230a56d8374532f73ae1c2 (patch) | |
tree | 6ee5400a92ce60f1676bfa44f5fb0b7e7ac09415 /src/pal | |
parent | ce83861b249144d681077b178e6458374a0e8397 (diff) | |
parent | 1e86aaad7f673261553895f58f5bad461b06c720 (diff) | |
download | coreclr-d0d5891047731af024230a56d8374532f73ae1c2.tar.gz coreclr-d0d5891047731af024230a56d8374532f73ae1c2.tar.bz2 coreclr-d0d5891047731af024230a56d8374532f73ae1c2.zip |
Merge pull request #3445 from mikem8361/buildsymbols
Enable source/line info on "release" builds
Diffstat (limited to 'src/pal')
-rw-r--r-- | src/pal/CMakeLists.txt | 1 | ||||
-rw-r--r-- | src/pal/tools/clang-compiler-override.txt | 8 | ||||
-rw-r--r-- | src/pal/tools/windows-compiler-override.txt | 4 |
3 files changed, 6 insertions, 7 deletions
diff --git a/src/pal/CMakeLists.txt b/src/pal/CMakeLists.txt index 619c74f673..5d9ce4e9e9 100644 --- a/src/pal/CMakeLists.txt +++ b/src/pal/CMakeLists.txt @@ -6,7 +6,6 @@ include_directories(${COREPAL_SOURCE_DIR}/inc) include_directories(${COREPAL_SOURCE_DIR}/src) include_directories(${COREPAL_SOURCE_DIR}/../inc) -add_compile_options(-gdwarf-3) add_compile_options(-fexceptions) add_subdirectory(src) diff --git a/src/pal/tools/clang-compiler-override.txt b/src/pal/tools/clang-compiler-override.txt index 35ed330332..8bba4a962b 100644 --- a/src/pal/tools/clang-compiler-override.txt +++ b/src/pal/tools/clang-compiler-override.txt @@ -1,14 +1,14 @@ SET (CMAKE_C_FLAGS_INIT "-Wall -std=c11") SET (CMAKE_C_FLAGS_DEBUG_INIT "-g -O0") SET (CLR_C_FLAGS_CHECKED_INIT "-g -O2") -SET (CMAKE_C_FLAGS_RELEASE_INIT "-O3") -SET (CMAKE_C_FLAGS_RELWITHDEBINFO_INIT "-O2 -g") +SET (CMAKE_C_FLAGS_RELEASE_INIT "-g -O3") +SET (CMAKE_C_FLAGS_RELWITHDEBINFO_INIT "-g -O2") SET (CMAKE_CXX_FLAGS_INIT "-Wall -Wno-null-conversion -std=c++11") SET (CMAKE_CXX_FLAGS_DEBUG_INIT "-g -O0") SET (CLR_CXX_FLAGS_CHECKED_INIT "-g -O2") -SET (CMAKE_CXX_FLAGS_RELEASE_INIT "-O3") -SET (CMAKE_CXX_FLAGS_RELWITHDEBINFO_INIT "-O2") +SET (CMAKE_CXX_FLAGS_RELEASE_INIT "-g -O3") +SET (CMAKE_CXX_FLAGS_RELWITHDEBINFO_INIT "-g -O2") SET (CLR_DEFINES_DEBUG_INIT DEBUG _DEBUG _DBG URTBLDENV_FRIENDLY=Checked BUILDENV_CHECKED=1) SET (CLR_DEFINES_CHECKED_INIT DEBUG _DEBUG _DBG URTBLDENV_FRIENDLY=Checked BUILDENV_CHECKED=1) diff --git a/src/pal/tools/windows-compiler-override.txt b/src/pal/tools/windows-compiler-override.txt index e50697c132..7f3c63c24e 100644 --- a/src/pal/tools/windows-compiler-override.txt +++ b/src/pal/tools/windows-compiler-override.txt @@ -1,13 +1,13 @@ SET (CMAKE_C_FLAGS_INIT "/Wall /FC") SET (CMAKE_C_FLAGS_DEBUG_INIT "/Od /Zi") SET (CLR_C_FLAGS_CHECKED_INIT "/O1 /Zi") -SET (CMAKE_C_FLAGS_RELEASE_INIT "/Ox") +SET (CMAKE_C_FLAGS_RELEASE_INIT "/Ox /Zi") SET (CMAKE_C_FLAGS_RELWITHDEBINFO_INIT "/O2 /Zi") SET (CMAKE_CXX_FLAGS_INIT "/Wall /FC") SET (CMAKE_CXX_FLAGS_DEBUG_INIT "/Od /Zi") SET (CLR_CXX_FLAGS_CHECKED_INIT "/O1 /Zi") -SET (CMAKE_CXX_FLAGS_RELEASE_INIT "/Ox") +SET (CMAKE_CXX_FLAGS_RELEASE_INIT "/Ox /Zi") SET (CMAKE_CXX_FLAGS_RELWITHDEBINFO_INIT "/O2 /Zi") SET (CLR_DEFINES_DEBUG_INIT DEBUG _DEBUG _DBG URTBLDENV_FRIENDLY=Checked BUILDENV_CHECKED=1) |