mirror of
https://github.com/ivabus/pantry
synced 2024-11-25 18:05:07 +03:00
parent
fa89a16b61
commit
b12cc2d4dd
1 changed files with 11 additions and 7 deletions
|
@ -1,5 +1,5 @@
|
|||
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
|
||||
versions:
|
||||
github: ccache/ccache
|
||||
|
@ -10,7 +10,8 @@ build:
|
|||
dependencies:
|
||||
asciidoctor.org: '*'
|
||||
cmake.org: '*'
|
||||
freedesktop.org/pkg-config: '*'
|
||||
linux:
|
||||
llvm.org: '*'
|
||||
script:
|
||||
- cmake -S . -B build $CMAKE_ARGS
|
||||
- cmake --build build
|
||||
|
@ -31,7 +32,7 @@ build:
|
|||
for file in "${files_array[@]}"; do
|
||||
ln -s ../bin/ccache "$file"
|
||||
done
|
||||
working-directory: "{{prefix}}/libexec"
|
||||
working-directory: '{{prefix}}/libexec'
|
||||
env:
|
||||
CMAKE_ARGS:
|
||||
- -DCMAKE_INSTALL_PREFIX="{{prefix}}
|
||||
|
@ -42,11 +43,14 @@ build:
|
|||
- -Wno-dev
|
||||
- -DBUILD_TESTING=OFF
|
||||
- -DENABLE_IPO=TRUE
|
||||
linux:
|
||||
CMAKE_ARGS:
|
||||
- -DCMAKE_C_COMPILER_AR={{deps.llvm.org.prefix}}/bin/llvm-ar
|
||||
provides:
|
||||
- bin/ccache
|
||||
test:
|
||||
script:
|
||||
- ccache -s
|
||||
- ccache --version | grep {{version}}
|
||||
- ccache --version | grep {{version.raw}}
|
||||
- export PATH={{prefix}}/libexec:$PATH
|
||||
- which clang | grep "{{prefix}}"
|
||||
- command -v clang | grep "{{prefix}}"
|
||||
|
|
Loading…
Reference in a new issue