Skip to content
This repository has been archived by the owner on Dec 9, 2022. It is now read-only.

backend: setup llvm #9

Closed
dannypsnl opened this issue Jul 6, 2022 · 1 comment
Closed

backend: setup llvm #9

dannypsnl opened this issue Jul 6, 2022 · 1 comment
Labels

Comments

@dannypsnl
Copy link
Owner

dannypsnl commented Jul 6, 2022

The target is simply to set up llvm-hs for a basic compiling, no need to be completely done.

@dannypsnl
Copy link
Owner Author

Path

  1. use llvm-hs 9.0 directly, this is available on Hackage. However, llvm@9 is not available on m1(apple silicon)
  2. use https://github.com/llvm-hs/llvm-hs for 12.0, but still cannot get the build correct
  3. try fork and use llvm 14, still cannot work
  4. the problem is Stack, for whatever reason, invokes gcc with the flag -std=c++14 which is nonsense

Anyway, this task has already taken me two days, and don't have any hope to solve it in a short time. Let's move on and generate C directly.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant