Skip to content

Commit

Permalink
Remove -lasan hack from Makefile.am: seems unnecessary, breaks macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
graydon committed Oct 29, 2024
1 parent 17b4a1c commit 9746cd3
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,6 @@ noinst_HEADERS = $(SRC_H_FILES)
# realize that it needs this setting.
CXXSTDLIB := $(if $(findstring -stdlib=libc++,$(CXXFLAGS)),c++,$(if $(findstring -stdlib=libstdc++,$(CXXFLAGS)),stdc++,))

# If we are building with -fsanitize=address, any build.rs-built C++ code will
# depend on asan, so we need to tell rustc to link with in the asan runtime as
# well. Interestingly, passing -Clink-arg=-fsanitize=address to rustc does not
# work, despite being the recommended approach, it seems rustc passes some other
# flags to the linker that conflict with -fsanitize=address.
RUSTFLAGS_ASAN := $(if $(findstring -fsanitize=address,$(CXXFLAGS)),-Clink-arg=-lasan,)

if USE_TRACY
# NB: this unfortunately long list has to be provided here and kept in sync with
# the list of features for tracy-client in src/rust/Cargo.toml. This is because
Expand Down

0 comments on commit 9746cd3

Please sign in to comment.