mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-11-06 12:37:44 +08:00
Merge branch 'cmake-host' into 'master'
Adapt cmake script for host See merge request redox-os/redox!1990
This commit is contained in:
commit
4fef7dc980
@ -263,7 +263,12 @@ EOF
|
||||
|
||||
function cookbook_cmake {
|
||||
|
||||
generate_cookbook_cmake_file $TARGET $GNU_TARGET- "$COOKBOOK_SYSROOT" cross_file.cmake
|
||||
if [ "$TARGET" = "$COOKBOOK_HOST_TARGET" ]; then
|
||||
GCC_PREFIX=
|
||||
else
|
||||
GCC_PREFIX=$GNU_TARGET-
|
||||
fi
|
||||
generate_cookbook_cmake_file "$TARGET" "$GCC_PREFIX" "$COOKBOOK_SYSROOT" cross_file.cmake
|
||||
|
||||
"${COOKBOOK_CMAKE}" "${COOKBOOK_SOURCE}" \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
|
||||
Loading…
Reference in New Issue
Block a user