diff options
author | Ian Lynagh <igloo@earth.li> | 2008-08-18 20:28:45 +0000 |
---|---|---|
committer | Ian Lynagh <igloo@earth.li> | 2008-08-18 20:28:45 +0000 |
commit | 391a299af4deb7bd593696ee6d53ac8f5c4667e1 (patch) | |
tree | c8c41b24caae24c9b19223e7ca8390d773e34ddc /compiler/Makefile | |
parent | b9d13108742ba43244490e0a90b6c80127561139 (diff) | |
download | haskell-391a299af4deb7bd593696ee6d53ac8f5c4667e1.tar.gz |
Fix making it possible to build without the NCG
If
GhcWithNativeCodeGen = NO
then we don't build the NCG modules, and we define OMIT_NATIVE_CODEGEN
Diffstat (limited to 'compiler/Makefile')
-rw-r--r-- | compiler/Makefile | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/compiler/Makefile b/compiler/Makefile index eabf9c6e6d..01a6ba4270 100644 --- a/compiler/Makefile +++ b/compiler/Makefile @@ -80,6 +80,14 @@ CONFIGURE_FLAGS_STAGE2 += --flags=-stage1 CONFIGURE_FLAGS_STAGE1 += --flags=-ghci +ifeq "$(GhcWithNativeCodeGen)" "YES" +CONFIGURE_FLAGS_STAGE1 += --flags=ncg +CONFIGURE_FLAGS_STAGE2 += --flags=ncg +else +CONFIGURE_FLAGS_STAGE1 += --flags=-ncg +CONFIGURE_FLAGS_STAGE2 += --flags=-ncg +endif + ifeq "$(GhcWithInterpreter)" "YES" CONFIGURE_FLAGS_STAGE2 += --flags=ghci |