C compiler selection in cabal package

后端 未结 3 1958
误落风尘
误落风尘 2021-02-19 17:34

I decided to add some flags to control the way that C source file is compiled (i.e. something like use-clang, use-intel etc.).

      C-Sources:    c_lib/tiger.c
              


        
3条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-02-19 18:33

    4.10.1. Replacing the program for one or more phases

    -pgmc cmd
            Use cmd as the C compiler.

    This works for ghc --make, but I'm not sure how to get Cabal to apply this to the C file compilation.

提交回复
热议问题