Building with gcc #18
-
Hi, https://neat-lang.github.io/getstarted.html#install-with-gcc
The build.sh script in git seems to need llvm. Is there a way to do it without llvm? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The install instructions assume that you're building one of the releases from the release page. The build script for the releases is generated and specific to the target compiler; it is not identical to the build script in the repo. The build.sh in the repo does assume it's building with LLVM, as that's the primary backend I develop for. (Though the testsuite is run with each backend while building the releases.) If you want to build the master version with |
Beta Was this translation helpful? Give feedback.
The install instructions assume that you're building one of the releases from the release page. The build script for the releases is generated and specific to the target compiler; it is not identical to the build script in the repo. The build.sh in the repo does assume it's building with LLVM, as that's the primary backend I develop for. (Though the testsuite is run with each backend while building the releases.)
If you want to build the master version with
gcc
, try adding-backend=c
to thebuild.sh
compiler flags. However, note that I don't guarantee that the C backend isn't broken between releases.