有没有办法重写:
flag llvm
description: compile via LLVM
default : if os(mingw32)
False
else
True
或者
flag llvm
description: compile via LLVM
default : True
if os(mingw32)
?SET-LLVM=False?
并开始cabal
使用它?
笔记:
在同一个文件中,该llvm
标志的使用如下:
if flag(llvm)
ghc-options: -fllvm -optlo-O3
还有许多其他单个高级标志可以转换为多个ghc-options
条目,例如static
to -static -optl-static
。