diff options
author | Kenjiro Nakayama <nakayamakenjiro@gmail.com> | 2024-12-17 18:31:06 +0900 |
---|---|---|
committer | Kenjiro Nakayama <nakayamakenjiro@gmail.com> | 2024-12-18 08:57:15 +0900 |
commit | 3e6153a55211a2590052664ba1b4093aaa97fc83 (patch) | |
tree | 80a535f4403769933d4a5a08b597dbb62d0138e9 /scripts | |
parent | f46d437e5149fced7b0c71a4c40a1b2fbb78dc90 (diff) | |
download | portable-3e6153a55211a2590052664ba1b4093aaa97fc83.tar.gz portable-3e6153a55211a2590052664ba1b4093aaa97fc83.tar.bz2 portable-3e6153a55211a2590052664ba1b4093aaa97fc83.zip |
unset CC only for mingw and arm32
Since `scripts/test` always unset "CC", the github action for "clang"
in Linux does not use clang unintentionally.
This patch unset CC only for mingw{32,64} and arm32.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/test | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/test b/scripts/test index e389728..abfa038 100755 --- a/scripts/test +++ b/scripts/test | |||
@@ -2,7 +2,10 @@ | |||
2 | set -e | 2 | set -e |
3 | set -x | 3 | set -x |
4 | 4 | ||
5 | unset CC | 5 | if [ "$ARCH" = "mingw32" ] || [ "$ARCH" = "mingw64" ] || [ "$ARCH" = "arm32" ]; then |
6 | unset CC | ||
7 | fi | ||
8 | |||
6 | ENABLE_ASM="${ENABLE_ASM:=ON}" | 9 | ENABLE_ASM="${ENABLE_ASM:=ON}" |
7 | 10 | ||
8 | if type apt-get >/dev/null 2>&1; then | 11 | if type apt-get >/dev/null 2>&1; then |