Add llvm config for updating llvm-config emulator

This commit is contained in:
Jeremy Soller 2024-05-29 15:54:59 -06:00
parent 71b5db9dd4
commit d5e4b26931
No known key found for this signature in database
GPG key ID: D02FD439211AF56F
2 changed files with 32 additions and 0 deletions

29
config/llvm.toml Normal file
View file

@ -0,0 +1,29 @@
# Default desktop configuration
include = ["base.toml"]
[general]
filesystem_size = 2048
[packages]
bash = {}
llvm = {}
[[files]]
path = "/usr/lib/init.d/99_gen_llvm-config-generate"
data = """
bash /usr/bin/llvm-config-generate
"""
[[files]]
path = "/usr/bin/llvm-config-generate"
data = """
for flag in --version --bindir --cppflags --cxxflags --includedir --ldflags --libdir --system-libs --targets-built --has-rtti --shared-mode
do
echo -e "'$flag': '$(llvm-config $flag)',"
done
for component in $(llvm-config --components)
do
echo -e "'$component': '$(llvm-config --libs $component)',"
done
"""

3
config/x86_64/llvm.toml Normal file
View file

@ -0,0 +1,3 @@
# Config for creating llvm-config script
include = ["../llvm.toml"]