From ac4f5a2dc302ca7955eef8a4606dfe794ec7f65b Mon Sep 17 00:00:00 2001 From: vczh Date: Sat, 6 Jan 2024 00:42:26 -0800 Subject: [PATCH] ... --- Tools/Executables/vl/makefile-cpp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Tools/Executables/vl/makefile-cpp diff --git a/Tools/Executables/vl/makefile-cpp b/Tools/Executables/vl/makefile-cpp new file mode 100644 index 00000000..7256e5d2 --- /dev/null +++ b/Tools/Executables/vl/makefile-cpp @@ -0,0 +1,20 @@ +COVERAGE?=NO +USE_GCC?=NO + +# add "--stdlib=libc++" after bug #808086 is fixed + +ifeq ($(USE_GCC), YES) +CPP_LINK=g++ -std=c++20 -g -pthread $(CPP_LINK_OPTIONS) -o $@ $^ +else ifeq ($(COVERAGE),NO) +CPP_LINK=clang++ -std=c++20 -pthread -g $(CPP_COMPILE_OPTIONS) -o $@ $^ +else +CPP_LINK=clang++ -std=c++20 -pthread -g --coverage $(CPP_LINK_OPTIONS) -o $@ $^ +endif + +ifeq ($(USE_GCC), YES) +CPP_COMPILE=g++ -std=c++20 -g $(CPP_COMPILE_OPTIONS) -o $@ -c $< +else ifeq ($(COVERAGE),NO) +CPP_COMPILE=clang++ -std=c++20 -g $(CPP_COMPILE_OPTIONS) -o $@ -c $< +else +CPP_COMPILE=clang++ -std=c++20 -g -fprofile-arcs -ftest-coverage $(CPP_COMPILE_OPTIONS) -o $@ -c $< +endif