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 -mcpu=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 '-Wl,-mllvm,-amdgpu-lower-global-ctor-dtor=0 '
12 '-L %{lib-dir} -lc++ -lc++abi -lclang_rt.builtins'
15 config.substitutions.append(('%{exec}',
19 config.stdlib = 'llvm-libc++'
22 site.addsitedir(os.path.join('@LIBCXX_SOURCE_DIR@', 'utils'))
23 import libcxx.test.params, libcxx.test.config
24 libcxx.test.config.configure(
25 libcxx.test.params.DEFAULT_PARAMETERS,
26 libcxx.test.features.DEFAULT_FEATURES,