Skip to content

Commit e122c9a

Browse files
committed
build.sh: honor EXTRA_CFLAGS env var for per-build static-lib flags
Used by the craftax parity harness to compile with -DCRAFTAX_JAX_PARITY, which disables the update_mobs early-out so the C env replays bitwise against JAX. Default training builds leave EXTRA_CFLAGS empty and keep the ~2x sim-SPS early-out enabled.
1 parent 203961e commit e122c9a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ if [ ! -f "$BINDING_SRC" ]; then
239239
fi
240240

241241
echo "Compiling static library for $ENV..."
242-
${CC:-clang} -c "${CLANG_OPT[@]}" \
242+
${CC:-clang} -c "${CLANG_OPT[@]}" $EXTRA_CFLAGS \
243243
-I. -Isrc -I$SRC_DIR -Ivendor \
244244
-I./$RAYLIB_NAME/include -I$CUDA_HOME/include \
245245
-DPLATFORM_DESKTOP \

0 commit comments

Comments
 (0)