meta: add build type variable to configure_build

This commit is contained in:
2026-02-23 21:58:09 +00:00
parent 0183790af3
commit 411423bf30

View File

@@ -8,6 +8,7 @@ if [ ! -n "$target_arch" ]; then
exit -1
fi
build_type=Debug
source_dir=$(realpath $(dirname "$0"))
native_build_dir=$source_dir/build-native
target_build_dir=$source_dir/build
@@ -28,6 +29,7 @@ cmake \
-DCMAKE_LIBRARY_OUTPUT_DIRECTORY="$native_build_dir/lib" \
-DCMAKE_ARCHIVE_OUTPUT_DIRECTORY="$native_build_dir/lib" \
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
-DCMAKE_BUILD_TYPE=$build_type \
$source_dir/kernel/tools
popd
@@ -39,6 +41,7 @@ cmake \
-DCMAKE_INSTALL_PREFIX=$sysroot_dir \
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
-DTARGET_ARCH=$target_arch \
-DCMAKE_BUILD_TYPE=$build_type \
$source_dir \
-DCMAKE_MODULE_PATH=$source_dir/arch/$target_arch \
-DCMAKE_SYSTEM_NAME=Rosetta \