diff options
author | simonmar <unknown> | 2000-06-02 12:16:19 +0000 |
---|---|---|
committer | simonmar <unknown> | 2000-06-02 12:16:19 +0000 |
commit | 633a6783b85f37e4d8055a21daaed6587721eb02 (patch) | |
tree | b8246aa35c68898334fd808c9322bf60e012197c /ghc/driver/ghc.lprl | |
parent | 61954ddbf3fc98ac07bcb16e054181cedd1b97ed (diff) | |
download | haskell-633a6783b85f37e4d8055a21daaed6587721eb02.tar.gz |
[project @ 2000-06-02 12:16:19 by simonmar]
add new flag -fglasgow-exts-no-lang, which is the same as
-fglsagow-exts but doesn't include the implicit -package lang. This
is needed only for compiling ghc/lib/std, where hslibs/lang may or may
not exist.
Diffstat (limited to 'ghc/driver/ghc.lprl')
-rw-r--r-- | ghc/driver/ghc.lprl | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/ghc/driver/ghc.lprl b/ghc/driver/ghc.lprl index 65351c0d9d..742f8c716a 100644 --- a/ghc/driver/ghc.lprl +++ b/ghc/driver/ghc.lprl @@ -3214,14 +3214,20 @@ arg: while($_ = $Args[0]) { /^-fallow-undecidable-instances$/ && do { push(@HsC_flags, $_); next arg; }; /^-fhistory-size.*$/ && do { push(@HsC_flags, $_); next arg; }; /^-fdicts-strict$/ && do { push(@HsC_flags, $_); next arg; }; + /^-fglasgow-exts$/ && do { push(@HsC_flags, $_); - # -fglasgow-exts implies -syslib lang + # -fglasgow-exts implies -package lang &add_syslib('lang'); next arg; }; + # for compiling lib/std we can't add the implicit package lang, + # because it isn't built yet. + /^-fglasgow-exts-no-lang$/ + && do { push(@HsC_flags, "-fglasgow-exts"); next arg; }; + /^-fspeciali[sz]e$/ && do { $Oopt_DoSpecialise = '-fspecialise'; next arg; }; /^-fno-speciali[sz]e$/ @@ -3231,8 +3237,6 @@ arg: while($_ = $Args[0]) { && do { $Oopt_UsageSPInf = '-fusagesp'; push (@HsC_flags, '-fusagesp-on'); next arg; }; - /^-fcompiling-prelude$/ && do { $CompilingPrelude=1; push(@HsC_flags, $_); next arg; }; - # Now the foldr/build options, which are *on* by default (for -O). /^-ffoldr-build$/ |