aboutsummaryrefslogtreecommitdiffstats
path: root/test/lib
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2009-08-18 00:40:33 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2009-08-18 00:40:33 +0000
commit92c518119b5b9ab9ba22c564a3ae601c3a882ab9 (patch)
treed8adf284f68ce9a035d8d34a2e8e188f0042d7d2 /test/lib
parentd4533de33d426e97ea53c3efdf073ce0a31b3160 (diff)
downloadexternal_llvm-92c518119b5b9ab9ba22c564a3ae601c3a882ab9.zip
external_llvm-92c518119b5b9ab9ba22c564a3ae601c3a882ab9.tar.gz
external_llvm-92c518119b5b9ab9ba22c564a3ae601c3a882ab9.tar.bz2
The attached patches attempt to fix cross builds. For example, if you
try to use i686-darwin to build for arm-eabi, you'll quickly run into several false assumptions that the target OS must be the same as the host OS. These patches split $(OS) into $(HOST_OS) and $(TARGET_OS) to help builds like "make check" and the test-suite able to cross compile. Along the way a target of *-unknown-eabi is defined as "Freestanding" so that TARGET_OS checks have something to work with. Patch by Sandeep Patel! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79296 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/lib')
-rw-r--r--test/lib/llvm2cpp.exp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/lib/llvm2cpp.exp b/test/lib/llvm2cpp.exp
index d8a65ff..05d2651 100644
--- a/test/lib/llvm2cpp.exp
+++ b/test/lib/llvm2cpp.exp
@@ -73,7 +73,7 @@ proc llvm2cpp-test { files } {
}
set retval [ catch {
- exec -keepnewline gcc -g -D__STDC_LIMIT_MACROS -o $executable $generated -I$srcroot/include -I$objroot/include -L$llvmlibsdir -lLLVMCore -lLLVMSupport -lLLVMbzip2 -lLLVMSystem -lstdc++ } msg ]
+ exec -keepnewline gcc -g -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -o $executable $generated -I$srcroot/include -I$objroot/include -L$llvmlibsdir -lLLVMCore -lLLVMSupport -lLLVMSystem -lstdc++ } msg ]
if { $retval != 0 } {
fail "$test: gcc returned $retval\n$msg"
continue