File tree Expand file tree Collapse file tree 2 files changed +31
-2
lines changed Expand file tree Collapse file tree 2 files changed +31
-2
lines changed Original file line number Diff line number Diff line change
1
+ # This testing configuration handles running the test suite against LLVM's libc++
2
+ # using a shared library, with GCC. This is done differently from Clang because
3
+ # GCC does not support the -nostdlib++ command-line flag.
4
+
5
+ import sys
6
+
7
+ lit_config.load_config(config, '@CMAKE_CURRENT_BINARY_DIR@/cmake-bridge.cfg')
8
+
9
+ config.substitutions.append(('%{flags}', ''))
10
+ config.substitutions.append(('%{compile_flags}',
11
+ '-nostdinc++ -isystem %{include} -isystem %{target-include} -I %{libcxx}/test/support'
12
+ ))
13
+ config.substitutions.append(('%{link_flags}',
14
+ '-L %{lib} -Wl,-rpath,%{lib} -nodefaultlibs -lc++ -lm -lgcc_s -lgcc -lpthread -lc -lgcc_s -lgcc -latomic'
15
+ ))
16
+ config.substitutions.append(('%{exec}',
17
+ '{} %{{libcxx}}/utils/run.py --execdir %T -- '.format(sys.executable)
18
+ ))
19
+
20
+ import os, site
21
+ site.addsitedir(os.path.join('@LIBCXX_SOURCE_DIR@', 'utils'))
22
+ import libcxx.test.params, libcxx.test.newconfig, libcxx.test.newconfig
23
+ libcxx.test.newconfig.configure(
24
+ libcxx.test.params.DEFAULT_PARAMETERS,
25
+ libcxx.test.features.DEFAULT_FEATURES,
26
+ config,
27
+ lit_config
28
+ )
Original file line number Diff line number Diff line change @@ -287,14 +287,15 @@ generic-gcc)
287
287
export CC=gcc-11
288
288
export CXX=g++-11
289
289
clean
290
- generate-cmake
290
+ generate-cmake -DLIBCXX_TEST_CONFIG= " llvm-libc++-shared-gcc.cfg.in "
291
291
check-runtimes
292
292
;;
293
293
generic-gcc-cxx11)
294
294
export CC=gcc-11
295
295
export CXX=g++-11
296
296
clean
297
- generate-cmake -C " ${MONOREPO_ROOT} /libcxx/cmake/caches/Generic-cxx11.cmake"
297
+ generate-cmake -C " ${MONOREPO_ROOT} /libcxx/cmake/caches/Generic-cxx11.cmake" \
298
+ -DLIBCXX_TEST_CONFIG=" llvm-libc++-shared-gcc.cfg.in"
298
299
check-runtimes
299
300
;;
300
301
generic-asan)
You can’t perform that action at this time.
0 commit comments