From: simonmar Date: Thu, 20 Feb 2003 11:45:24 +0000 (+0000) Subject: [project @ 2003-02-20 11:45:24 by simonmar] X-Git-Tag: Approx_11550_changesets_converted~1138 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=710316dfc1ef5c9ef378ebfd8de96b3347aec63f;p=ghc-hetmet.git [project @ 2003-02-20 11:45:24 by simonmar] Add -fvia-C to utils/Panic_HC_OPTS, and remove it from main/Main_HC_OPTS. --- diff --git a/ghc/compiler/Makefile b/ghc/compiler/Makefile index 29f6eff..958e96c 100644 --- a/ghc/compiler/Makefile +++ b/ghc/compiler/Makefile @@ -347,9 +347,6 @@ endif # The standard suffix rule for compiling a Haskell file # adds these flags to the command line -# not sure if this is required --SDM -main/Main_HC_OPTS = -fvia-C - prelude/PrimOp_HC_OPTS = -no-recomp -H80m # because the NCG can't handle the 64-bit math in here @@ -408,6 +405,9 @@ ifeq "$(HOSTPLATFORM)" "i386-unknown-mingw32" main/SysTools_HC_OPTS += '-\#include ' '-\#include ' endif +# Required due to use of Concurrent.myThreadId +utils/Panic_HC_OPTS += -fvia-C + # ghc_strlen percolates through so many modules that it is easier to get its # prototype via a global option instead of a myriad of per-file OPTIONS SRC_HC_OPTS += '-\#include "hschooks.h"'