Skip to content

Commit 63d8d99

Browse files
theKidOfArcraniaAmanieu
authored andcommitted
Use cmd.exe
1 parent 2975f9f commit 63d8d99

File tree

2 files changed

+13
-9
lines changed

2 files changed

+13
-9
lines changed

compiler-builtins/.github/workflows/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,11 @@ jobs:
9191
- target: i686-pc-windows-gnu
9292
os: windows-latest
9393
rust: nightly-i686-gnu
94+
test_unc: 1
9495
- target: x86_64-pc-windows-gnu
9596
os: windows-latest
9697
rust: nightly-x86_64-gnu
98+
test_unc: 1
9799
steps:
98100
- name: Print runner information
99101
run: uname -a

compiler-builtins/ci/run.sh

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,17 @@ else
3333
fi
3434

3535
if [ "${TEST_UNC:-}" = "1" ]; then
36-
run="cargo build --manifest-path testcrate/Cargo.toml --target $target --target-dir \\\\?\\$TEMP\\test_unc"
37-
$run
38-
$run --release
39-
$run --features c
40-
$run --features c --release
41-
$run --features no-asm
42-
$run --features no-asm --release
43-
$run --features no-f16-f128
44-
$run --features no-f16-f128 --release
36+
function run() {
37+
cmd.exe /c cargo build --manifest-path testcrate/Cargo.toml --target $target --target-dir "\\\\?\\%TEMP%\\test_unc" "$@"
38+
}
39+
run
40+
run --release
41+
run --features c
42+
run --features c --release
43+
run --features no-asm
44+
run --features no-asm --release
45+
run --features no-f16-f128
46+
run --features no-f16-f128 --release
4547
fi
4648

4749
if [ -d /builtins-target ]; then

0 commit comments

Comments
 (0)