diff options
author | Thomas Miedema <thomasmiedema@gmail.com> | 2015-10-26 13:30:07 +0100 |
---|---|---|
committer | Thomas Miedema <thomasmiedema@gmail.com> | 2015-10-30 17:43:24 +0100 |
commit | 314395e00be10e6343840c215a4779aeec2542df (patch) | |
tree | d01bc1d4c842e242bd9432bb14b79fb0ee3ccb51 /utils/genprimopcode | |
parent | b05ab1a8bde53fee69d1ba99c7475444e9f84aa0 (diff) | |
download | haskell-314395e00be10e6343840c215a4779aeec2542df.tar.gz |
Build system: cabalise deriveConstants + genprimopcode
This is needed for #10374 (but doesn't fix it yet).
Also rename DeriveConstants.hs to Main.hs, because the build
system has trouble with Main modules not called Main.hs.
Differential Revision: https://phabricator.haskell.org/D1380
Diffstat (limited to 'utils/genprimopcode')
-rw-r--r-- | utils/genprimopcode/genprimopcode.cabal | 22 | ||||
-rw-r--r-- | utils/genprimopcode/ghc.mk | 7 |
2 files changed, 26 insertions, 3 deletions
diff --git a/utils/genprimopcode/genprimopcode.cabal b/utils/genprimopcode/genprimopcode.cabal new file mode 100644 index 0000000000..adc5230a4f --- /dev/null +++ b/utils/genprimopcode/genprimopcode.cabal @@ -0,0 +1,22 @@ +Name: genprimopcode +Version: 0.1 +Copyright: XXX +License: BSD3 +-- XXX License-File: LICENSE +Author: XXX +Maintainer: XXX +Synopsis: XXX +Description: XXX +Category: Development +build-type: Simple +cabal-version: >=1.10 + +Executable genprimopcode + Default-Language: Haskell2010 + Main-Is: Main.hs + Other-Modules: Lexer + Parser + ParserM + Syntax + Build-Depends: base >= 4 && < 5, + array diff --git a/utils/genprimopcode/ghc.mk b/utils/genprimopcode/ghc.mk index 4b9ebef0d8..790c75dbb2 100644 --- a/utils/genprimopcode/ghc.mk +++ b/utils/genprimopcode/ghc.mk @@ -10,9 +10,10 @@ # # ----------------------------------------------------------------------------- -utils/genprimopcode_dist_MODULES = Lexer Main ParserM Parser Syntax -utils/genprimopcode_dist_PROGNAME = genprimopcode -utils/genprimopcode_dist_HC_OPTS = -package array +utils/genprimopcode_USES_CABAL = YES +utils/genprimopcode_PACKAGE = genprimopcode +utils/genprimopcode_dist_PROGNAME = genprimopcode +utils/genprimopcode_dist_INSTALL = NO utils/genprimopcode_dist_INSTALL_INPLACE = YES $(eval $(call build-prog,utils/genprimopcode,dist,0)) |