[project @ 1999-09-01 14:17:14 by sof]
authorsof <unknown>
Wed, 1 Sep 1999 14:17:14 +0000 (14:17 +0000)
committersof <unknown>
Wed, 1 Sep 1999 14:17:14 +0000 (14:17 +0000)
If -noC is used, don't compile the foreign-export C stubs

ghc/driver/ghc.lprl

index 1db52ea..a2ca7b7 100644 (file)
@@ -1471,8 +1471,10 @@ Now the Haskell compiler, C compiler, and assembler
        local ($hsc_out_o_stub);
        ($ofile_s_stub_target = $ofile_c_stub_target) =~ s/\.(.*)$/\.s/;
        ($ofile_o_stub_target = $ofile_c_stub_target) =~ s/\.(.*)$/\.o/;
-       &runGcc    (0, $ofile_c_stub_target, $ofile_s_stub_target);
-        &runAs     ($ofile_o_stub_target, $ofile_s_stub_target);
+       if ($do_cc) {
+         &runGcc    (0, $ofile_c_stub_target, $ofile_s_stub_target);
+          &runAs     ($ofile_o_stub_target, $ofile_s_stub_target);
+       }
        #
        # Bring the C stub protos into scope when compiling the .hc file.
        #