Always pass -D_GNU_SOURCE to cc1plus
[oota-llvm.git] / 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.