Skip to content
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

use dynamic libasan on arch Linux #844

Merged
merged 2 commits into from
Oct 6, 2024
Merged
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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ or clone the repository first, and then update submodules with:
git submodule update --init --recursive
```

Install cmake then:
Install cmake (and libasan on Linux) then:

```
mkdir build
Expand Down
6 changes: 5 additions & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ if(NOT PCM_NO_ASAN)
set(PCM_NO_STATIC_LIBASAN ON)
message(STATUS "CentOS detected, using dynamic libasan")
endif()
if(OS_ID STREQUAL "arch")
set(PCM_NO_STATIC_LIBASAN ON)
message(STATUS "arch Linux detected, using dynamic libasan")
endif()
endif()

if(UNIX) # LINUX, FREE_BSD, APPLE
Expand Down Expand Up @@ -80,7 +84,7 @@ if(UNIX) # LINUX, FREE_BSD, APPLE
set(PCM_DYNAMIC_ASAN "")
set(PCM_STATIC_ASAN "-static-libasan")
message(STATUS "Using static libasan")
message(STATUS "To use dynamic libasan, use -DPCM_NO_STATIC_LIBASAN=1 option (required for CentOS)")
message(STATUS "To use dynamic libasan, use -DPCM_NO_STATIC_LIBASAN=1 option (required for CentOS and arch Linux)")
endif()
endif()

Expand Down
Loading