brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.7 KiB · 61d6914 Raw
39 lines · yaml
1# UNSUPPORTED: system-windows2 3# This test demonstrates "layered" multilib in which more than one4# multilib is matched.5# For example a multilib containing only a no-exceptions libc++ could6# be layered on top of a multilib containing C libs. This avoids the7# need to duplicate the C library for every libc++ variant.8# However -fno-exceptions is not yet supported for multilib selection9# so we use a more contrived -mfloat-abi example instead.10 11# RUN: %clang --multi-lib-config=%s -no-canonical-prefixes -x c++ %s -### -o %t.out 2>&1 \12# RUN:     --target=thumbv7m-none-eabi -mfloat-abi=softfp --sysroot= \13# RUN:   | FileCheck %s14# CHECK:      "-cc1" "-triple" "thumbv7m-unknown-none-eabi"15# CHECK-SAME: "-internal-isystem" "[[SYSROOT:[^"]*]]/bin/../lib/clang-runtimes/softfp/include/c++/v1"16# CHECK-SAME: "-internal-isystem" "[[SYSROOT]]/bin/../lib/clang-runtimes/soft/include/c++/v1"17# CHECK-SAME: "-internal-isystem" "[[SYSROOT]]/bin/../lib/clang-runtimes/softfp/include"18# CHECK-SAME: "-internal-isystem" "[[SYSROOT]]/bin/../lib/clang-runtimes/soft/include"19# CHECK-NEXT: "-L[[SYSROOT]]/bin/../lib/clang-runtimes/softfp/lib"20# CHECK-SAME: "-L[[SYSROOT]]/bin/../lib/clang-runtimes/soft/lib"21 22# RUN: %clang --multi-lib-config=%s -no-canonical-prefixes -print-multi-directory 2>&1 \23# RUN:     --target=arm-none-eabi -mfloat-abi=softfp --sysroot= \24# RUN:   | FileCheck --check-prefix=CHECK-PRINT-MULTI-DIRECTORY %s25# CHECK-PRINT-MULTI-DIRECTORY:      soft26# CHECK-PRINT-MULTI-DIRECTORY-NEXT: softfp27 28---29MultilibVersion: 1.030Variants:31- Dir: soft32  Flags: [-mfloat-abi=soft]33- Dir: softfp34  Flags: [-mfloat-abi=softfp]35Mappings:36- Match: -mfloat-abi=softfp37  Flags: [-mfloat-abi=soft]38...39