summaryrefslogtreecommitdiffstats
path: root/github_macos_build.sh
diff options
context:
space:
mode:
authorEllie Hermaszewska <ellieh@nvidia.com>2023-02-01 23:32:40 +0800
committerGitHub <noreply@github.com>2023-02-01 23:32:40 +0800
commitc5895fb0b82fd14fbe45b58d5fc7f75d67625d15 (patch)
treeaa4c92c772eb3e239251d658a2a9da4d88221bd4 /github_macos_build.sh
parente312d5c7dfde80941d96e522079a5d70f7d00649 (diff)
Use gmake2 as a premake target over gmake (#2587)
The gmake generator has been deprecated by gmake2 https://premake.github.io/docs/Using-Premake/#using-premake-to-generate-project-files gmake2 has better dependency handling around our custom rules leading in fewer runs of slang-generate etc...
Diffstat (limited to 'github_macos_build.sh')
-rw-r--r--github_macos_build.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/github_macos_build.sh b/github_macos_build.sh
index cd986e70d..1e8548239 100644
--- a/github_macos_build.sh
+++ b/github_macos_build.sh
@@ -14,7 +14,7 @@ fi
if [[ "${ARCH}" != "${TARGETARCH}" ]]; then
# Create the makefile
-./premake5 gmake --cc=${CC} --enable-xlib=false --enable-embed-stdlib=true --arch=${ARCH} --deps=true --no-progress=true
+./premake5 gmake2 --cc=${CC} --enable-xlib=false --enable-embed-stdlib=true --arch=${ARCH} --deps=true --no-progress=true
# Build the configuration
make config=${CONFIGURATION}_${ARCH} -j`sysctl -n hw.ncpu`
@@ -23,11 +23,11 @@ rm -rf ./bin
ARCH="arm64"
# Create the makefile
-./premake5 gmake --cc=${CC} --enable-xlib=false --enable-embed-stdlib=true --arch=${TARGETARCH} --deps=true --no-progress=true --skip-source-generation=true --deploy-slang-llvm=false --deploy-slang-glslang=false
+./premake5 gmake2 --cc=${CC} --enable-xlib=false --enable-embed-stdlib=true --arch=${TARGETARCH} --deps=true --no-progress=true --skip-source-generation=true --deploy-slang-llvm=false --deploy-slang-glslang=false
make config=${CONFIGURATION}_${TARGETARCH} -j`sysctl -n hw.ncpu`
else
# Create the makefile
-./premake5 gmake --cc=${CC} --enable-xlib=false --enable-embed-stdlib=true --arch=${TARGETARCH} --deps=true --no-progress=true
+./premake5 gmake2 --cc=${CC} --enable-xlib=false --enable-embed-stdlib=true --arch=${TARGETARCH} --deps=true --no-progress=true
# Build the configuration
make config=${CONFIGURATION}_${TARGETARCH} -j`sysctl -n hw.ncpu`
fi