Skip to content

Commit

Permalink
package CMake metadata for libbolt-devel
Browse files Browse the repository at this point in the history
  • Loading branch information
h-vetinari committed Jul 24, 2024
1 parent f8d0234 commit 0e96961
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions recipes/bolt/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,15 @@ outputs:
script: install_bolt.bat # [win]
build:
activate_in_script: true
always_include_files:
# Must overwrite CMake targets from llvmdev
{% set prefix = "Library/" if win else "" %}
- {{ prefix }}lib/cmake/llvm/LLVM-Config.cmake
- {{ prefix }}lib/cmake/llvm/LLVMConfig.cmake
- {{ prefix }}lib/cmake/llvm/LLVMConfigVersion.cmake
- {{ prefix }}lib/cmake/llvm/LLVMExports-release.cmake
- {{ prefix }}lib/cmake/llvm/LLVMExports.cmake

requirements:
build:
- {{ stdlib('c') }}
Expand All @@ -71,6 +80,15 @@ outputs:
- test -f $PREFIX/lib/libbolt_rt_hugify.a # [linux64]
- test -f $PREFIX/lib/libbolt_rt_instr.a # [linux64]

{% for each_file in [
"-Config", "Config", "ConfigVersion",
"LLVMExports-release", "LLVMExports"
] %}
# CMake metadata
- test -f $PREFIX/lib/cmake/llvm/LLVM{{ each_file }}.cmake # [unix]
- if not exist %LIBRARY_LIB%/cmake/llvm/LLVM{{ each_file }}.cmake exit 1 # [win]
{% endfor %}

# Contains bolt
- name: bolt
script: install_bolt.sh # [unix]
Expand Down

0 comments on commit 0e96961

Please sign in to comment.