diff options
author | Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de> | 2016-07-27 08:15:54 +0000 |
---|---|---|
committer | Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de> | 2016-07-27 08:15:54 +0000 |
commit | d196fa524fa483a6195f6f079b0ee82dba03db1f (patch) | |
tree | c49889501e16de7bc63ef8f8d0e35dd29d99ca96 /clang/test/Driver/mips-mti-linux.c | |
parent | 7094aa4f8d9cf64c56e07966b993c593bc8c73d8 (diff) | |
download | bcm5719-llvm-d196fa524fa483a6195f6f079b0ee82dba03db1f.tar.gz bcm5719-llvm-d196fa524fa483a6195f6f079b0ee82dba03db1f.zip |
Support setting default value for -rtlib at build time
This patch introduces a new cmake variable: CLANG_DEFAULT_RTLIB, thru
which we can specify a default value for -rtlib (libgcc or
compiler-rt) at build time, just like how we set the default C++
stdlib thru CLANG_DEFAULT_CXX_STDLIB.
With these two options, we can configure clang to build binaries on
Linux that have no runtime dependence on any gcc libs (libstdc++ or
libgcc_s).
Patch by Lei Zhang!
Differential Revision: https://reviews.llvm.org/D22663
llvm-svn: 276848
Diffstat (limited to 'clang/test/Driver/mips-mti-linux.c')
-rw-r--r-- | clang/test/Driver/mips-mti-linux.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/Driver/mips-mti-linux.c b/clang/test/Driver/mips-mti-linux.c index e3560e20440..4835d798c26 100644 --- a/clang/test/Driver/mips-mti-linux.c +++ b/clang/test/Driver/mips-mti-linux.c @@ -8,7 +8,7 @@ // = Big-endian, mips32r2, hard float // RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \ -// RUN: --target=mips-mti-linux -mips32r2 -mhard-float \ +// RUN: --target=mips-mti-linux -mips32r2 -mhard-float -rtlib=platform \ // RUN: --sysroot=%S/Inputs/mips_mti_linux/sysroot \ // RUN: | FileCheck --check-prefix=CHECK-BE-HF-32R2 %s // @@ -26,7 +26,7 @@ // = Little-endian, mips32r2, hard float // RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \ -// RUN: --target=mips-mti-linux -mips32r2 -EL -mhard-float \ +// RUN: --target=mips-mti-linux -mips32r2 -EL -mhard-float -rtlib=platform \ // RUN: --sysroot=%S/Inputs/mips_mti_linux/sysroot \ // RUN: | FileCheck --check-prefix=CHECK-LE-HF-32R2 %s // |