1 lit_config.load_config(config, '@CMAKE_CURRENT_BINARY_DIR@/cmake-bridge.cfg')
3 libc_linker_script = '@CMAKE_INSTALL_PREFIX@/lib/picolibcpp.ld'
5 config.substitutions.append(('%{flags}', '--sysroot=@CMAKE_INSTALL_PREFIX@'))
7 config.substitutions.append(('%{compile_flags}',
8 '-nostdinc++ -I %{include} -I %{cxx-include} -I %{cxx-target-include} %{maybe-include-libunwind} -I %{libcxx}/test/support -I %{libcxx}/src -D_LIBCPP_ENABLE_CXX17_REMOVED_UNEXPECTED_FUNCTIONS'
10 config.substitutions.append(('%{link_flags}',
11 '-nostdlib -nostdlib++ -L %{lib} -lc++ -lc++abi'
12 ' -lc -lm -lclang_rt.builtins -lsemihost -lcrt0-semihost' +
13 ' -T {}'.format(libc_linker_script) +
14 ' -Wl,--defsym=__flash=0x0'
15 ' -Wl,--defsym=__flash_size=0x400000'
16 ' -Wl,--defsym=__ram=0x21000000'
17 ' -Wl,--defsym=__ram_size=0x1000000'
18 ' -Wl,--defsym=__stack_size=0x1000'
22 '@LIBCXXABI_LIBCXX_PATH@/utils/qemu_baremetal.py'
23 ' --qemu @QEMU_SYSTEM_ARM@'
24 ' --machine mps2-an385'
26 config.substitutions.append(('%{exec}',
32 site.addsitedir(os.path.join('@LIBCXXABI_LIBCXX_PATH@', 'utils'))
33 import libcxx.test.params, libcxx.test.config
34 libcxx.test.config.configure(
35 libcxx.test.params.DEFAULT_PARAMETERS,
36 libcxx.test.features.DEFAULT_FEATURES,