diff options
author | Ian Lynagh <ian@well-typed.com> | 2012-11-10 23:28:58 +0000 |
---|---|---|
committer | Ian Lynagh <ian@well-typed.com> | 2012-11-12 22:37:55 +0000 |
commit | f49271c06434cace6f955c7b651295f0f1db3a03 (patch) | |
tree | e1a595dd621388cd36b1ecdbe595d7e126e2c92d /ghc.mk | |
parent | b78b6b3472511c7e39d5c91b0449a59e0f361dcf (diff) | |
download | haskell-f49271c06434cace6f955c7b651295f0f1db3a03.tar.gz |
Replace mkDerivedConstants.c with DeriveConstants.hs
DeriveConstants.hs works in a cross-compilation-friendly way. Rather
than running a C program that prints out the constants, we just compile
a C file which has the constants are encoded in symbol sizes. We then
parse the output of 'nm' to find out what the constants are.
Based on work by Gabor Greif <ggreif@gmail.com>.
Diffstat (limited to 'ghc.mk')
-rw-r--r-- | ghc.mk | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -662,6 +662,7 @@ BUILD_DIRS += \ $(MAYBE_COMPILER) \ $(GHC_HSC2HS_DIR) \ $(GHC_PKG_DIR) \ + utils/deriveConstants \ utils/testremove \ $(MAYBE_GHCTAGS) \ utils/ghc-pwd \ @@ -1294,6 +1295,7 @@ distclean : clean $(call removeFiles,libraries/unix/include/HsUnixConfig.h) $(call removeFiles,libraries/old-time/include/HsTimeConfig.h) $(call removeTrees,utils/ghc-pwd/dist-boot) + $(call removeTrees,includes/dist-derivedconstants) $(call removeTrees,inplace) $(call removeTrees,$(patsubst %, libraries/%/autom4te.cache, $(PACKAGES_STAGE1) $(PACKAGES_STAGE2))) |