2 # UNSUPPORTED: system-windows
4 # This test demonstrates "layered" multilib in which more than one
6 # For example a multilib containing only a no-exceptions libc++ could
7 # be layered on top of a multilib containing C libs. This avoids the
8 # need to duplicate the C library for every libc++ variant.
9 # However -fno-exceptions is not yet supported for multilib selection
10 # so we use a more contrived -mfloat-abi example instead.
12 # RUN: %clang --multi-lib-config=%s -no-canonical-prefixes -x c++ %s -### -o %t.out 2>&1 \
13 # RUN: --target=thumbv7m-none-eabi -mfloat-abi=softfp --sysroot= \
15 # CHECK: "-cc1" "-triple" "thumbv7m-unknown-none-eabi"
16 # CHECK-SAME: "-internal-isystem" "[[SYSROOT:[^"]*]]/bin/../lib/clang-runtimes/softfp/include/c++/v1"
17 # CHECK-SAME: "-internal-isystem" "[[SYSROOT]]/bin/../lib/clang-runtimes/soft/include/c++/v1"
18 # CHECK-SAME: "-internal-isystem" "[[SYSROOT]]/bin/../lib/clang-runtimes/softfp/include"
19 # CHECK-SAME: "-internal-isystem" "[[SYSROOT]]/bin/../lib/clang-runtimes/soft/include"
20 # CHECK-NEXT: "-L[[SYSROOT]]/bin/../lib/clang-runtimes/softfp/lib"
21 # CHECK-SAME: "-L[[SYSROOT]]/bin/../lib/clang-runtimes/soft/lib"
23 # RUN: %clang --multi-lib-config=%s -no-canonical-prefixes -print-multi-directory 2>&1 \
24 # RUN: --target=arm-none-eabi -mfloat-abi=softfp --sysroot= \
25 # RUN: | FileCheck --check-prefix=CHECK-PRINT-MULTI-DIRECTORY %s
26 # CHECK-PRINT-MULTI-DIRECTORY: soft
27 # CHECK-PRINT-MULTI-DIRECTORY-NEXT: softfp
33 Flags: [-mfloat-abi=soft]
35 Flags: [-mfloat-abi=softfp]
37 - Match: -mfloat-abi=softfp
38 Flags: [-mfloat-abi=soft]