[flang] Lower procedure pointer components (#75453)
[llvm-project.git] / libcxxabi / test / configs / armv7m-picolibc-libc++abi.cfg.in
blobb4744f935ad859587411a2f87304d1cbe64f9684
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'
9 ))
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'
21 config.executor = (
22     '@LIBCXXABI_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('@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,
37     config,
38     lit_config