fix(ccache)

closes #4669
This commit is contained in:
Jacob Heider 2024-01-04 20:48:26 -05:00 committed by Jacob Heider
parent fa89a16b61
commit b12cc2d4dd

View file

@ -1,5 +1,5 @@
distributable: distributable:
url: https://github.com/ccache/ccache/releases/download/v{{version}}/ccache-{{version}}.tar.gz url: https://github.com/ccache/ccache/releases/download/{{version.tag}}/ccache-{{version.raw}}.tar.gz
strip-components: 1 strip-components: 1
versions: versions:
github: ccache/ccache github: ccache/ccache
@ -10,7 +10,8 @@ build:
dependencies: dependencies:
asciidoctor.org: '*' asciidoctor.org: '*'
cmake.org: '*' cmake.org: '*'
freedesktop.org/pkg-config: '*' linux:
llvm.org: '*'
script: script:
- cmake -S . -B build $CMAKE_ARGS - cmake -S . -B build $CMAKE_ARGS
- cmake --build build - cmake --build build
@ -31,7 +32,7 @@ build:
for file in "${files_array[@]}"; do for file in "${files_array[@]}"; do
ln -s ../bin/ccache "$file" ln -s ../bin/ccache "$file"
done done
working-directory: "{{prefix}}/libexec" working-directory: '{{prefix}}/libexec'
env: env:
CMAKE_ARGS: CMAKE_ARGS:
- -DCMAKE_INSTALL_PREFIX="{{prefix}} - -DCMAKE_INSTALL_PREFIX="{{prefix}}
@ -42,11 +43,14 @@ build:
- -Wno-dev - -Wno-dev
- -DBUILD_TESTING=OFF - -DBUILD_TESTING=OFF
- -DENABLE_IPO=TRUE - -DENABLE_IPO=TRUE
linux:
CMAKE_ARGS:
- -DCMAKE_C_COMPILER_AR={{deps.llvm.org.prefix}}/bin/llvm-ar
provides: provides:
- bin/ccache - bin/ccache
test: test:
script: script:
- ccache -s - ccache -s
- ccache --version | grep {{version}} - ccache --version | grep {{version.raw}}
- export PATH={{prefix}}/libexec:$PATH - export PATH={{prefix}}/libexec:$PATH
- which clang | grep "{{prefix}}" - command -v clang | grep "{{prefix}}"