Skip to content

Commit f001bee

Browse files
author
Maxim Egorushkin
committed
Fix tests clang linker error in debug mode.
1 parent 22a5a4a commit f001bee

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ cxxflags.clang.release := -O3 -mtune=native -ffast-math -falign-functions=64 -DN
4949
cxxflags.clang.sanitize := ${cxxflags.clang.release} -fsanitize=thread
5050
cxxflags.clang := -std=gnu++14 -pthread -march=native -stdlib=libstdc++ -W{all,extra,error,no-{unused-variable,unused-function,unused-local-typedefs}} -fmessage-length=0 ${cxxflags.clang.${BUILD}}
5151
ldflags.clang.sanitize := ${ldflags.clang.release} -fsanitize=thread
52+
ldflags.clang.debug := -latomic
5253
ldflags.clang := -stdlib=libstdc++ ${ldflags.clang.${BUILD}}
5354

5455
# Additional CPPFLAGS, CXXFLAGS, CFLAGS, LDLIBS, LDFLAGS can come from the command line, e.g. make CPPFLAGS='-I<my-include-dir>', or from environment variables.
@@ -186,3 +187,7 @@ env :
186187
env | sort --ignore-case
187188

188189
.PHONY : update_env_txt env versions rtags run_benchmarks clean all run_%
190+
191+
# Local Variables:
192+
# compile-command: "/bin/time make -rC ~/src/atomic_queue -j$(($(nproc)/2)) BUILD=debug run_tests"
193+
# End:

0 commit comments

Comments
 (0)