ci: link libm on the Linux runner, which float code needs
glibc keeps sinf/sqrtf/floorf and the rest in libm, which macOS links implicitly; examples/lang/floats.ludic failed to link on the Linux build-and-test job. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
parent
b055fc2496
commit
bd542bd6e4
4 changed files with 4 additions and 4 deletions
|
|
@ -35,7 +35,7 @@ jobs:
|
||||||
git checkout "${GITHUB_SHA}" 2>/dev/null || git checkout "${GITHUB_REF_NAME:-main}"
|
git checkout "${GITHUB_SHA}" 2>/dev/null || git checkout "${GITHUB_REF_NAME:-main}"
|
||||||
git log --oneline -1
|
git log --oneline -1
|
||||||
# See ci.yml for why the Linux build injects the stdio shim via LUDIC_CC.
|
# See ci.yml for why the Linux build injects the stdio shim via LUDIC_CC.
|
||||||
echo "LUDIC_CC=clang-16 $(pwd)/tools/ci/linux_stdio_shim.ll" >> "$GITHUB_ENV"
|
echo "LUDIC_CC=clang-16 $(pwd)/tools/ci/linux_stdio_shim.ll -lm" >> "$GITHUB_ENV"
|
||||||
echo "LUDIC_HOME=$(pwd)" >> "$GITHUB_ENV"
|
echo "LUDIC_HOME=$(pwd)" >> "$GITHUB_ENV"
|
||||||
|
|
||||||
- name: Bootstrap x from the seed
|
- name: Bootstrap x from the seed
|
||||||
|
|
|
||||||
|
|
@ -48,7 +48,7 @@ jobs:
|
||||||
# LUDIC_CC so every clang invocation — the seed bootstrap, `ludic-dev build`,
|
# LUDIC_CC so every clang invocation — the seed bootstrap, `ludic-dev build`,
|
||||||
# and each compiled test program — picks it up. Absolute path so it
|
# and each compiled test program — picks it up. Absolute path so it
|
||||||
# still resolves if a step changes directory.
|
# still resolves if a step changes directory.
|
||||||
echo "LUDIC_CC=clang-16 $(pwd)/tools/ci/linux_stdio_shim.ll" >> "$GITHUB_ENV"
|
echo "LUDIC_CC=clang-16 $(pwd)/tools/ci/linux_stdio_shim.ll -lm" >> "$GITHUB_ENV"
|
||||||
echo "LUDIC_HOME=$(pwd)" >> "$GITHUB_ENV"
|
echo "LUDIC_HOME=$(pwd)" >> "$GITHUB_ENV"
|
||||||
|
|
||||||
- name: Bootstrap the toolchain from the IR seed (clang only)
|
- name: Bootstrap the toolchain from the IR seed (clang only)
|
||||||
|
|
|
||||||
|
|
@ -63,7 +63,7 @@ jobs:
|
||||||
# tiny C-free IR shim supplying the Darwin stdout/stderr globals over
|
# tiny C-free IR shim supplying the Darwin stdout/stderr globals over
|
||||||
# glibc's, injected through LUDIC_CC. docs-gen is a pure CLI (no
|
# glibc's, injected through LUDIC_CC. docs-gen is a pure CLI (no
|
||||||
# windowing), so the C-free bootstrap is all it needs.
|
# windowing), so the C-free bootstrap is all it needs.
|
||||||
export LUDIC_CC="clang-16 $(pwd)/tools/ci/linux_stdio_shim.ll"
|
export LUDIC_CC="clang-16 $(pwd)/tools/ci/linux_stdio_shim.ll -lm"
|
||||||
export LUDIC_HOME="$(pwd)"
|
export LUDIC_HOME="$(pwd)"
|
||||||
mkdir -p bin
|
mkdir -p bin
|
||||||
clang-16 tools/ci/linux_stdio_shim.ll selfhost/ludicc.seed.ll -o bin/ludicc
|
clang-16 tools/ci/linux_stdio_shim.ll selfhost/ludicc.seed.ll -o bin/ludicc
|
||||||
|
|
|
||||||
|
|
@ -49,7 +49,7 @@ jobs:
|
||||||
git checkout "$TAG"
|
git checkout "$TAG"
|
||||||
echo "TAG=$TAG" >> "$GITHUB_ENV"
|
echo "TAG=$TAG" >> "$GITHUB_ENV"
|
||||||
# See ci.yml for why the Linux build injects the stdio shim via LUDIC_CC.
|
# See ci.yml for why the Linux build injects the stdio shim via LUDIC_CC.
|
||||||
echo "LUDIC_CC=clang-16 $(pwd)/tools/ci/linux_stdio_shim.ll" >> "$GITHUB_ENV"
|
echo "LUDIC_CC=clang-16 $(pwd)/tools/ci/linux_stdio_shim.ll -lm" >> "$GITHUB_ENV"
|
||||||
echo "LUDIC_HOME=$(pwd)" >> "$GITHUB_ENV"
|
echo "LUDIC_HOME=$(pwd)" >> "$GITHUB_ENV"
|
||||||
|
|
||||||
- name: The tag, VERSION and CHANGELOG must agree
|
- name: The tag, VERSION and CHANGELOG must agree
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue