Add lua53 flag.
It is false by default. If set to true, compile with hslua 2.1 and Lua 5.3, otherwise hslua 2.2 and Lua 5.4.
This commit is contained in:
parent
35350fac85
commit
f5129666e7
2 changed files with 10 additions and 3 deletions
|
@ -310,8 +310,7 @@ You will need cabal version 2.0 or higher.
|
|||
- `embed_data_files`: embed all data files into the binary (default no).
|
||||
This is helpful if you want to create a relocatable binary.
|
||||
|
||||
- `https`: enable support for downloading resources over https
|
||||
(using the `http-client` and `http-client-tls` libraries).
|
||||
- `lua53`: embed support for Lua 5.3 instead of 5.4.
|
||||
|
||||
3. Build:
|
||||
|
||||
|
|
10
pandoc.cabal
10
pandoc.cabal
|
@ -420,6 +420,10 @@ flag embed_data_files
|
|||
Description: Embed data files in binary for relocatable executable.
|
||||
Default: False
|
||||
|
||||
flag lua53
|
||||
Description: Embed Lua 5.3 instead of 5.4.
|
||||
Default: False
|
||||
|
||||
flag trypandoc
|
||||
Description: Build trypandoc cgi executable.
|
||||
Default: False
|
||||
|
@ -484,7 +488,6 @@ library
|
|||
file-embed >= 0.0 && < 0.1,
|
||||
filepath >= 1.1 && < 1.5,
|
||||
haddock-library >= 1.10 && < 1.11,
|
||||
hslua >= 2.1 && < 2.3,
|
||||
hslua-marshalling >= 2.1 && < 2.3,
|
||||
hslua-module-doclayout>= 1.0.2 && < 1.1,
|
||||
hslua-module-path >= 1.0 && < 1.1,
|
||||
|
@ -529,6 +532,11 @@ library
|
|||
zlib >= 0.5 && < 0.7
|
||||
if !os(windows)
|
||||
build-depends: unix >= 2.4 && < 2.8
|
||||
if flag(lua53)
|
||||
build-depends: hslua >= 2.1 && < 2.2,
|
||||
hslua-aeson >= 2.1 && < 2.3
|
||||
else
|
||||
build-depends: hslua >= 2.2 && < 2.3
|
||||
if flag(embed_data_files)
|
||||
cpp-options: -DEMBED_DATA_FILES
|
||||
other-modules: Text.Pandoc.Data
|
||||
|
|
Loading…
Reference in a new issue