mirror of
https://github.com/daniel-lynch/ovrplugin-openxr-shim.git
synced 2026-10-06 00:00:06 +02:00
build: compile the Android shim at -O2 (was unoptimized)
The deployable arm64 artifact was built with no -O flag (-O0) while the host build used -O2. For a latency/throughput-focused shim that's a real miss — bring the Android build to -O2 to match. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01D6sFYGXZPsq3v7xtcDES6g
This commit is contained in:
1 parent
a72a79ad29
commit
213115353b
1 file changed
+1
-1
@@ -12,7 +12,7 @@ CC="$TC/bin/aarch64-linux-android29-clang" # API 29 (Quest is Android 10+; app
|
||||
[ -x "$CC" ] || { echo "NDK clang not found at $CC"; exit 1; }
|
||||
mkdir -p "$SHIM/build/arm64"
|
||||
|
||||
"$CC" -std=c11 -Wall -shared -fPIC -fvisibility=hidden \
|
||||
"$CC" -std=c11 -Wall -O2 -shared -fPIC -fvisibility=hidden \
|
||||
-I"$SHIM/include" -I"$SHIM/third_party/openxr" -I"$SHIM/third_party/vulkan" \
|
||||
"$SHIM/src/stubs.c" "$SHIM/src/core.c" "$SHIM/src/xr_runtime.c" \
|
||||
"$SHIM/src/vk_session.c" "$SHIM/src/layers.c" "$SHIM/src/android_init.c" "$SHIM/src/xr_input.c" \
|
||||
|
||||
Reference in new issue
Block a user