rsmmr / hilti

**NOTE**: This is outdated and no longer maintained. There's a new version at https://github.com/zeek/spicy.
Other
40 stars 22 forks source link

Select clang version with LLVM_CONFIG_EXEC #24

Closed FrozenCaribou closed 7 years ago

FrozenCaribou commented 8 years ago

Patch to select the clang version used to build Hilti. Useful to use a different version of the system. For instance :

make LLVM_CONFIG_EXEC=/opt/llvm-3.5/bin/llvm-config

or

make LLVM_CONFIG_EXEC=$(which llvm-config-3.5)

Some modifications had to be done in scripts (llvm-ar-wrapper and hilti-build) to take account of the llvm-config to use.

(Idea inspired by ldc project and its clang version matrix https://github.com/ldc-developers/ldc/blob/master/.travis.yml)

rsmmr commented 7 years ago

This doesn't apply anymore with the recent changes to the build system. I'm closing it but would be happy to merge an updated PR that adds a corresponding configure option.