Skip to content

Commit 6648276

Browse files
Empty llvm_version variable before loop
After the loop, the variable is checked for non-emptyness, and non-empty values can be inherited from previous iterations of the parent loop.
1 parent f5acfd8 commit 6648276

File tree

4 files changed

+4
-2
lines changed

4 files changed

+4
-2
lines changed

packages/conf-libclang/conf-libclang.13/files/configure.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ for version in default 13 12 11 10 9 8 7 6 5 4 3; do
1919
brew_llvm_config="$(brew --cellar)"/llvm*/${version}*/bin/llvm-config || true
2020
brew_llvm_config_at="$(brew --cellar)"/llvm@${version}/${version}*/bin/llvm-config || true
2121
fi
22+
llvm_version=""
2223
for llvm_config in \
2324
llvm-config-${version} llvm-config-${version}.0 \
2425
llvm-config${version}0 llvm-config${version} \

packages/conf-libclang/conf-libclang.13/opam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ x-ci-accept-failures: [
4141
"opensuse-15.3" # unavailable system package 'llvm-clang-devel'
4242
]
4343
extra-files: [[
44-
"configure.sh" "sha512=70cc1707be92274de1072551ee1175fc25c0157a916fd3f965cdcb7a94e6dfe0962bc7baff7a578ccb5595891ce691fc7a33442536eaa8744b92c9e896cd8dcb"
44+
"configure.sh" "sha512=94c9d19667bda6ab913e5ad62ff6559d6e0a5cf95e4403065619ed299ac522679bf1f4c9d03c27bb57c7736e9c6edebf0a796edc33bd46816a665209903e2710"
4545
]]
4646
synopsis: "Virtual package relying on the installation of llvm and clang libraries (<= 13.0.x)"
4747
flags: conf

packages/conf-libclang/conf-libclang.14/files/configure.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ for version in default $(seq $maximum_version -1 3); do
4040
brew_llvm_config="$(brew --cellar llvm)"/${version}*/bin/llvm-config || true
4141
brew_llvm_config_at="$(brew --cellar llvm@${version})"/${version}*/bin/llvm-config || true
4242
fi
43+
llvm_version=""
4344
for llvm_config in \
4445
llvm-config-${version} llvm-config-${version}.0 \
4546
llvm-config${version}0 llvm-config${version} \

packages/conf-libclang/conf-libclang.14/opam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ x-ci-accept-failures: [
3737
"opensuse-15.3" # unavailable system package 'llvm-clang-devel'
3838
]
3939
extra-files: [[
40-
"configure.sh" "sha512=11d2a1abca89411efa218730490cb076a8400e266bfc1bdef5b4e60a84f2afe44dbd9036c8a1d9306046e0933430a6b06d31f5e04b97abb9d6fd08431ddae882"
40+
"configure.sh" "sha512=27a0ddec4e5ccf895a279b910c7e0fe130f9b680d4771c409161d6ed5ebefcdc94d54fcb7625c40e49f83a6e1c5c4511b29ab8ddc3ce09f27ca8f77daf2c65be"
4141
]]
4242
synopsis: "Virtual package relying on the installation of llvm and clang libraries (<= 14.0.x)"
4343
flags: conf

0 commit comments

Comments
 (0)