Fix relibc-tests compilation

This commit is contained in:
Wildan M 2025-12-13 08:00:38 +07:00
parent 5dfb3d6e6a
commit 3f33dbfcfc
No known key found for this signature in database
GPG Key ID: 01AC53185C679C79

View File

@ -1,6 +1,5 @@
[source]
git = "https://gitlab.redox-os.org/redox-os/relibc.git"
branch = "master"
same_as = "../../core/relibc"
[build]
template = "custom"
@ -8,7 +7,7 @@ script = """
rsync -av --delete "${COOKBOOK_SOURCE}/" ./
pushd tests
export CARGO_TEST="${COOKBOOK_CARGO}"
export NATIVE_RELIBC=0 # set 0 to link against relibc
export NATIVE_RELIBC=1 # to link against prefix
"${COOKBOOK_MAKE}" -j "${COOKBOOK_MAKE_JOBS}" all bins_verify/relibc-tests
popd
mkdir -pv "${COOKBOOK_STAGE}/share/relibc"