Always pass -D_GNU_SOURCE to cc1
authorReid Spencer <rspencer@reidspencer.com>
Thu, 25 Nov 2004 19:38:39 +0000 (19:38 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Thu, 25 Nov 2004 19:38:39 +0000 (19:38 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18252 91177308-0d34-0410-b5e6-96231b3b80d8

tools/llvmc/c.in

index 9124e9ea77d1a0e7eb86f20d772692fc66f1942f..6acb9ea61cd8204d483d5209a6a9ed4d230f389f 100644 (file)
@@ -28,7 +28,8 @@
   # To compile stacker source, we just run the stacker
   # compiler with a default stack size of 2048 entries.
   translator.command=@LLVMCC1@ -quiet %in% -o %out% \
-    %opt% %incls% %defs% %WOpts% %fOpts% %MOpts% %args%
+    %opt% %incls% %defs% %WOpts% %fOpts% %MOpts% %args% \
+    -D_GNU_SOURCE
 
   # stkrc doesn't preprocess but we set this to true so
   # that we don't run the cp command by default.
@@ -61,4 +62,4 @@
 ##########################################################
 # Assembler definitions
 ##########################################################
-  assembler.command=llc %in% -o %out% %target% %time% %stats%
+  assembler.command=@LLVM_BINDIR@/llc %in% -o %out% %target% %time% %stats%