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:
Daniel LynchandClaude Opus 4.8 committed 2026-06-29 00:57:06 -04:00
1 parent a72a79ad29
commit 213115353b
1 file changed
+1 -1
+1 -1
View File
@@ -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" \