Skip to content
Snippets Groups Projects
Commit 9eebc157 authored by Will Angenent's avatar Will Angenent
Browse files

Fix packaging in MacOS

Setting CC= isn't enough in MacOS, AR and RANLIB also need replacing. Without this,
bits are compiled for redox instead of the host leading to linker target mismatches.
parent 033e32dc
No related branches found
No related tags found
1 merge request!272Fix packaging in MacOS
......@@ -23,15 +23,15 @@ fi
if [ ! "$(uname -s)" = "Redox" ]
then
function docgen {
CC=cc cargo run --release --manifest-path "$ROOT/docgen/Cargo.toml" --bin docgen -- "$@"
CC=cc AR=ar RANLIB=ranlib cargo run --release --manifest-path "$ROOT/docgen/Cargo.toml" --bin docgen -- "$@"
}
function pkg {
CC=cc cargo run --release --manifest-path "$ROOT/pkgutils/Cargo.toml" --bin pkg -- "$@"
CC=cc AR=ar RANLIB=ranlib cargo run --release --manifest-path "$ROOT/pkgutils/Cargo.toml" --bin pkg -- "$@"
}
function pkgar {
CC=cc cargo run --release --manifest-path "$ROOT/pkgar/Cargo.toml" --bin pkgar -- "$@"
CC=cc AR=ar RANLIB=ranlib cargo run --release --manifest-path "$ROOT/pkgar/Cargo.toml" --bin pkgar -- "$@"
}
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment