Skip to content

Commit

Permalink
quick fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
tobtoht committed Sep 6, 2024
1 parent 9d3753e commit 75d1c22
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/guix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
- name: purge apparmor
run: sudo apt purge apparmor
- name: build
run: SUBSTITUTE_URLS='http://bordeaux.guix.gnu.org' HOSTS="${{ matrix.toolchain.target }}" ./contrib/guix/guix-build
run: ADDITIONAL_GUIX_TIMEMACHINE_FLAGS="--disable-authentication" SUBSTITUTE_URLS='http://bordeaux.guix.gnu.org' HOSTS="${{ matrix.toolchain.target }}" ./contrib/guix/guix-build
- uses: actions/upload-artifact@v4
with:
name: ${{ matrix.toolchain.target }}
Expand Down
4 changes: 3 additions & 1 deletion contrib/guix/libexec/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ store_path() {
# includes/libs
NATIVE_GCC="$(store_path gcc-toolchain)"
NATIVE_GCC_STATIC="$(store_path gcc-toolchain static)"
RUST_SRC="$(store_path rust rust-src)/lib/rustlib/src/rust"

unset LIBRARY_PATH
unset CPATH
Expand Down Expand Up @@ -310,7 +311,8 @@ mkdir -p "$DISTSRC"
-DCMAKE_SHARED_LINKER_FLAGS="${HOST_LDFLAGS}" \
-DCMAKE_SKIP_RPATH=ON \
-DMANUAL_SUBMODULES=1 \
-DGUIX=1
-DGUIX=1 \
-DRUST_SRC=${RUST_SRC}

make -C build --jobs="$JOBS"

Expand Down
4 changes: 2 additions & 2 deletions src/fcmp_pp/fcmp_pp_rust/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,13 @@ endif()
set(RUST_TARGET "${RUST_ARCH}-${RUST_PLATFORM}${RUST_TOOLCHAIN}")

if (GUIX)
set(CARGO_CMD __CARGO_TESTS_ONLY_SRC_ROOT=/gnu/store/aymb9k11rmmkizvg8qcjqv57vx2mvkxn-rust-1.77.1-rust-src/lib/rustlib/src/rust RUSTFLAGS=-Cpanic=abort RUSTC_BOOTSTRAP=1 cargo build --release --target "${RUST_TARGET}" -Zbuild-std=std,panic_abort --no-default-features)
set(CARGO_CMD __CARGO_TESTS_ONLY_SRC_ROOT=${RUST_SRC} RUSTFLAGS=-Cpanic=abort RUSTC_BOOTSTRAP=1 cargo build --release --target "${RUST_TARGET}" -Zbuild-std=std,panic_abort --no-default-features)
set(TARGET_DIR "release")
else ()
if (CMAKE_BUILD_TYPE STREQUAL "Debug")
set(CARGO_CMD cargo build --target "${RUST_TARGET}")
set(TARGET_DIR "debug")
elseif ()
else ()
set(CARGO_CMD cargo build --target "${RUST_TARGET}" --release)
set(TARGET_DIR "release")
endif ()
Expand Down

0 comments on commit 75d1c22

Please sign in to comment.