From: Mario Date: Sat, 2 Jul 2022 14:09:00 +0000 (+1000) Subject: Add QCCFLAGS_TARGET Makefile option to allow changing the QCC support target X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=3d2d1ec723ae3693397d3efc2e4df337e449e19d;p=xonotic%2Fxonotic-data.pk3dir.git Add QCCFLAGS_TARGET Makefile option to allow changing the QCC support target --- diff --git a/qcsrc/Makefile b/qcsrc/Makefile index c4650c26f..b0a33ea73 100644 --- a/qcsrc/Makefile +++ b/qcsrc/Makefile @@ -38,6 +38,10 @@ QCCFLAGS_WERROR ?= \ QCCFLAGS_WTFS ?= \ -Wno-field-redeclared +# By default Xonotic targets GMQCC, set to -Tdp for FTEQCC extended support +QCCFLAGS_TARGET ?= \ + -std=gmqcc + QCCDEFS ?= \ -DXONOTIC=$(XONOTIC) \ -DWATERMARK="$(QCCFLAGS_WATERMARK)" \ @@ -50,7 +54,7 @@ QCCDEFS ?= \ # -Ooverlap-locals is required QCCFLAGS ?= \ - -std=gmqcc \ + $(QCCFLAGS_TARGET) \ -Ooverlap-locals \ -O3 \ $(QCCFLAGS_WERROR) \