1 lit_config.load_config(config, '@CMAKE_CURRENT_BINARY_DIR@/cmake-bridge.cfg')
3 config.substitutions.append(('%{flags}',
4 f'--target={config.target_triple} -Wno-multi-gpu -flto -march=native'))
5 config.substitutions.append(('%{compile_flags}',
6 '-nogpulib -fno-builtin-printf -I %{include-dir} '
7 '-I %{target-include-dir} -I %{libcxx-dir}/test/support'
9 config.substitutions.append(('%{link_flags}',
10 '-nostdlib++ -startfiles -stdlib '
11 '-L %{lib-dir} -lc++ -lc++abi '
12 '-Wl,--suppress-stack-size-warning '
13 '-Wl,-mllvm,-nvptx-lower-global-ctor-dtor=1 '
14 '-Wl,-mllvm,-nvptx-emit-init-fini-kernel'
16 config.substitutions.append(('%{exec}',
17 '%{executor} --no-parallelism'
20 config.stdlib = 'llvm-libc++'
23 site.addsitedir(os.path.join('@LIBCXX_SOURCE_DIR@', 'utils'))
24 import libcxx.test.params, libcxx.test.config
25 libcxx.test.config.configure(
26 libcxx.test.params.DEFAULT_PARAMETERS,
27 libcxx.test.features.DEFAULT_FEATURES,