Skip to content

update msvc ASAN support and copy required install dlls #77

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion cmake/Sanitizers.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,20 @@ function(
endif()
elseif(MSVC)
if(${ENABLE_SANITIZER_ADDRESS})
list(APPEND SANITIZERS "address")
if(${CMAKE_BUILD_TYPE} STREQUAL "Debug")
message(WARNING "MSVC only supports address sanitizer in release builds")
else()
list(APPEND SANITIZERS "address")
cmake_path(GET CMAKE_CXX_COMPILER PARENT_PATH MSVC_TOOLS_DIR)
install(
FILES
"${MSVC_TOOLS_DIR}/clang_rt.asan_dbg_dynamic-x86_64.dll"
"${MSVC_TOOLS_DIR}/clang_rt.asan_dbg_dynamic-x86_64.pdb"
"${MSVC_TOOLS_DIR}/clang_rt.asan_dynamic-x86_64.dll"
"${MSVC_TOOLS_DIR}/clang_rt.asan_dynamic-x86_64.pdb"
TYPE BIN
)
endif()
endif()
if(${ENABLE_SANITIZER_LEAK}
OR ${ENABLE_SANITIZER_UNDEFINED_BEHAVIOR}
Expand Down
1 change: 1 addition & 0 deletions src/ftxui_sample/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ target_link_system_libraries(
ftxui::component)

target_include_directories(intro PRIVATE "${CMAKE_BINARY_DIR}/configured_files/include")