[clangd] Fix warnings
[llvm-project.git] / libunwind / test / configs / armv7m-picolibc-libunwind.cfg.in
blobe8f68a51fc53f8a283c9bc27878f42d612ea4f11
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}'
9 ))
10 config.substitutions.append(('%{link_flags}',
11     '-nostdlib -nostdlib++ -L %{lib} -lunwind'
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'
21 config.executor = (
22     '@LIBUNWIND_LIBCXX_PATH@/utils/qemu_baremetal.py'
23     ' --qemu @QEMU_SYSTEM_ARM@'
24     ' --machine mps2-an385'
25     ' --cpu cortex-m3')
26 config.substitutions.append(('%{exec}',
27     '%{executor}'
28     ' --execdir %T'
31 import os, site
32 site.addsitedir(os.path.join('@LIBUNWIND_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,
37     config,
38     lit_config