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

tools/llvmc/cpp.in

index 0abc012c3c8236170ab140c5cd8a87e30ba0daf1..c3022652da5cc9f1cc079e4f1946a6d5ceb395dd 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=@LLVMCC1PLUS@ -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.