aboutsummaryrefslogtreecommitdiffstats
path: root/driver/Frontend.ml
diff options
context:
space:
mode:
Diffstat (limited to 'driver/Frontend.ml')
-rw-r--r--driver/Frontend.ml3
1 files changed, 3 insertions, 0 deletions
diff --git a/driver/Frontend.ml b/driver/Frontend.ml
index 4ee5c712..5d45306d 100644
--- a/driver/Frontend.ml
+++ b/driver/Frontend.ml
@@ -57,6 +57,9 @@ let preprocess ifile ofile =
if ofile = "-" then None else Some ofile in
let cmd = List.concat [
Configuration.prepro;
+ (if Configuration.gnu_toolchain
+ then ["-std=" ^ !option_std]
+ else []);
predefined_macros;
(if !Clflags.use_standard_headers
then ["-I" ^ Filename.concat !Clflags.stdlib_path "include" ]