You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
V_MACOS_V3_NO_FALLBACK=1 ./v -v run "$RUNNER_TEMP/v3_canary.v" > "$RUNNER_TEMP/v3_canary.out" 2>&1 || true
61
+
cat "$RUNNER_TEMP/v3_canary.out"
62
+
grep -q 'V3 compiler in process' "$RUNNER_TEMP/v3_canary.out" || { echo '::error::V3 was NOT dispatched on Linux — the program was compiled by V1, so the default-compiler change is a no-op'; exit 1; }
63
+
grep -qx '42' "$RUNNER_TEMP/v3_canary.out" || { echo '::error::the V3-compiled canary did not build/run correctly'; exit 1; }
64
+
if grep -qiE 'retrying with .-old-compiler|compatibility fallback|used the stable compiler' "$RUNNER_TEMP/v3_canary.out"; then echo '::error::V3 silently fell back to V1'; exit 1; fi
65
+
echo 'OK: V3 compiled and ran this program in-process on Linux, with the fallback disabled'
V_MACOS_V3_NO_FALLBACK=1 ./v -v run "$RUNNER_TEMP/v3_canary.v" > "$RUNNER_TEMP/v3_canary.out" 2>&1 || true
146
+
cat "$RUNNER_TEMP/v3_canary.out"
147
+
grep -q 'V3 compiler in process' "$RUNNER_TEMP/v3_canary.out" || { echo '::error::V3 was NOT dispatched on Linux — the program was compiled by V1, so the default-compiler change is a no-op'; exit 1; }
148
+
grep -qx '42' "$RUNNER_TEMP/v3_canary.out" || { echo '::error::the V3-compiled canary did not build/run correctly'; exit 1; }
149
+
if grep -qiE 'retrying with .-old-compiler|compatibility fallback|used the stable compiler' "$RUNNER_TEMP/v3_canary.out"; then echo '::error::V3 silently fell back to V1'; exit 1; fi
150
+
echo 'OK: V3 compiled and ran this program in-process on Linux, with the fallback disabled'
V_MACOS_V3_NO_FALLBACK=1 ./v -v run "$RUNNER_TEMP/v3_canary.v" > "$RUNNER_TEMP/v3_canary.out" 2>&1 || true
703
+
cat "$RUNNER_TEMP/v3_canary.out"
704
+
grep -q 'V3 compiler in process' "$RUNNER_TEMP/v3_canary.out" || { echo '::error::V3 was NOT dispatched on Linux — the program was compiled by V1, so the default-compiler change is a no-op'; exit 1; }
705
+
grep -qx '42' "$RUNNER_TEMP/v3_canary.out" || { echo '::error::the V3-compiled canary did not build/run correctly'; exit 1; }
706
+
if grep -qiE 'retrying with .-old-compiler|compatibility fallback|used the stable compiler' "$RUNNER_TEMP/v3_canary.out"; then echo '::error::V3 silently fell back to V1'; exit 1; fi
707
+
echo 'OK: V3 compiled and ran this program in-process on Linux, with the fallback disabled'
629
708
- name: Pkg-config regressions (Clang)
630
709
run: |
631
710
set -euo pipefail
@@ -662,6 +741,11 @@ jobs:
662
741
- name: Self tests (-cstrict)
663
742
run: v run ci/linux_ci.vsh self_tests_cstrict_clang
664
743
- name: Build examples
744
+
# The examples corpus includes deliberate inline-assembly compatibility
745
+
# cases, so exercise the documented V3-to-V1 fallback in this lane. The
746
+
# canary and dedicated V3 suites above remain strict.
747
+
env:
748
+
V_MACOS_V3_NO_FALLBACK: 0
665
749
run: v run ci/linux_ci.vsh build_examples_clang
666
750
- name: Build examples with -autofree
667
751
run: v run ci/linux_ci.vsh build_examples_autofree_clang
V_MACOS_V3_NO_FALLBACK=1 ./v -v run "$RUNNER_TEMP/v3_canary.v" > "$RUNNER_TEMP/v3_canary.out" 2>&1 || true
69
+
cat "$RUNNER_TEMP/v3_canary.out"
70
+
grep -q 'V3 compiler in process' "$RUNNER_TEMP/v3_canary.out" || { echo '::error::V3 was NOT dispatched on macOS — the program was compiled by V1'; exit 1; }
71
+
grep -qx '42' "$RUNNER_TEMP/v3_canary.out" || { echo '::error::the V3-compiled canary did not build/run correctly'; exit 1; }
72
+
if grep -qiE 'retrying with .-old-compiler|compatibility fallback|used the stable compiler' "$RUNNER_TEMP/v3_canary.out"; then echo '::error::V3 silently fell back to V1'; exit 1; fi
73
+
echo 'OK: V3 compiled and ran this program in-process on macOS, with the fallback disabled'
51
74
- name: Pkg-config regressions (Clang, no static executable)
0 commit comments