summaryrefslogtreecommitdiff
path: root/ci/intel-scripts/cache_exclude_windows.sh
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2022-07-10 17:52:01 -0400
committerEli Schwartz <eschwartz@archlinux.org>2022-07-11 17:58:02 -0400
commit1521bdd9fd42ef216f3c3cee4a9c6124e131143e (patch)
treeca94f75d23cfc5c891be8717cc7298bc506878b0 /ci/intel-scripts/cache_exclude_windows.sh
parent30dc26a0fb1ba0d23261df289ef12bbeda7660fd (diff)
downloadmeson-1521bdd9fd42ef216f3c3cee4a9c6124e131143e.tar.gz
CI: install ifort on Windows
This enables the fortran tests for Azure. We only test on x64, because: - ifort isn't arm64 compatible - x86 may in theory exist, but Meson reports it cannot compile executables
Diffstat (limited to 'ci/intel-scripts/cache_exclude_windows.sh')
-rwxr-xr-xci/intel-scripts/cache_exclude_windows.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/ci/intel-scripts/cache_exclude_windows.sh b/ci/intel-scripts/cache_exclude_windows.sh
new file mode 100755
index 000000000..ba672f29d
--- /dev/null
+++ b/ci/intel-scripts/cache_exclude_windows.sh
@@ -0,0 +1,15 @@
+#!/bin/bash
+
+# SPDX-FileCopyrightText: 2020 Intel Corporation
+#
+# SPDX-License-Identifier: MIT
+
+#shellcheck disable=SC2010
+LATEST_VERSION=$(ls -1 "C:\Program Files (x86)\Intel\oneAPI\compiler" | grep -v latest | sort | tail -1)
+
+rm -rf "C:\Program Files (x86)\Intel\oneAPI\compiler\'$LATEST_VERSION'\windows\compiler\lib\ia32_win"
+rm -rf "C:\Program Files (x86)\Intel\oneAPI\compiler\'$LATEST_VERSION'\windows\bin\intel64_ia32"
+rm -rf "C:\Program Files (x86)\Intel\oneAPI\compiler\'$LATEST_VERSION'\windows\lib\emu"
+rm -rf "C:\Program Files (x86)\Intel\oneAPI\compiler\'$LATEST_VERSION'\windows\lib\oclfpga"
+rm -rf "C:\Program Files (x86)\Intel\oneAPI\compiler\'$LATEST_VERSION'\windows\lib\ocloc"
+rm -rf "C:\Program Files (x86)\Intel\oneAPI\compiler\'$LATEST_VERSION'\windows\lib\x86"