build: apply optimization flags to existing build trees and escape Exec path

This commit is contained in:
Andras Laszlo committed 2026-10-16 17:52:11 +02:00
1 parent 0e2a2dde61
commit 67f800d47a
2 files changed
+4 -3

No files matched your search

+2 -2
View File
@@ -14,7 +14,7 @@ python3 scripts/prepare.py
# is required by objc4's debug-ness macro check.
cmake -S build/darling-src -B build/darling-src/build -G 'Unix Makefiles' \
-DCMAKE_BUILD_TYPE= -DTARGET_i386=OFF -DCMAKE_INSTALL_PREFIX=/usr/local -DENABLE_METAL=ON \
-DCMAKE_C_FLAGS_INIT="-O3 -march=native -mtune=native -pipe" \
-DCMAKE_CXX_FLAGS_INIT="-O3 -march=native -mtune=native -pipe"
-DCMAKE_C_FLAGS="-O3 -march=native -mtune=native -pipe" \
-DCMAKE_CXX_FLAGS="-O3 -march=native -mtune=native -pipe"
cmake --build build/darling-src/build --parallel "${JOBS:-$(nproc)}"
echo 'Build complete. Install the base runtime with: sudo cmake --install build/darling-src/build'
+2 -1
View File
@@ -141,13 +141,14 @@ def main():
# 3. Create .desktop file
run_script = PROJECT_ROOT / "scripts/run.sh"
exec_path = str(run_script).replace("%", "%%")
desktop_content = f"""[Desktop Entry]
Version=1.0
Type=Application
Name=League of Legends
GenericName=MOBA Game
Comment=Play League of Legends on Linux with darling-lol
Exec="{run_script}"
Exec="{exec_path}"
Path={PROJECT_ROOT}
Icon=league-of-legends
Terminal=false