summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaiyi Li <kaiyili@google.com>2021-06-29 13:45:29 -0700
committerKaiyi Li <kaiyili@google.com>2021-06-29 13:45:29 -0700
commitadb5227d2e896a87d93d9372020ecf0bb30b74fa (patch)
treedfbb04afa80731a8613aa309b4462535ff86f246
parentaa99c6cfff93ddd014a3d8815eba9be3fcd10bee (diff)
downloadvulkan-cereal-android-s-beta-4.tar.gz
Add symbol information to pdb when compiled on Windowsandroid-s-beta-4android-s-beta-3android-s-beta-4
Adding the /Zi flag will allow us to see source line when debugging with the pdb files. Test: run the emulator, attach the debugger, pause, and we can see source code and line information in the gfxstream DLL. Change-Id: I0c61ab7b525cdfdac401aeba71d892db14ad7932
-rw-r--r--CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 539c5ba3..89a8ba57 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -17,6 +17,7 @@ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
set(CMAKE_INSTALL_PREFIX ${CMAKE_BINARY_DIR}/distribution)
if (WIN32)
+ SET(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /Zi")
else()
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g3 -O3")
endif()