summaryrefslogtreecommitdiffstats
path: root/premake5.lua
diff options
context:
space:
mode:
authorkaizhangNV <149626564+kaizhangNV@users.noreply.github.com>2024-04-19 21:27:10 -0700
committerGitHub <noreply@github.com>2024-04-19 21:27:10 -0700
commit8362c2d46e2da0c20fbd3daf511ccdf425f9a1f0 (patch)
tree5f4eb50535acb6b6dda589c4697817860fbc9ca4 /premake5.lua
parentbeae3a9d219dac1e4e3da9c357b25d06370388f3 (diff)
Create a new release build for linux_x64. (#3989)
Diffstat (limited to 'premake5.lua')
-rw-r--r--premake5.lua13
1 files changed, 13 insertions, 0 deletions
diff --git a/premake5.lua b/premake5.lua
index 1cfe33517..b14844c8e 100644
--- a/premake5.lua
+++ b/premake5.lua
@@ -236,6 +236,14 @@ newoption {
allowed = { { "true", "True"}, { "false", "False" } }
}
+newoption {
+ trigger = "glibc-forward-compatible",
+ description = "(Optional) Build slang against older version of glibc (2.27) to be forward compatible with older systems",
+ value = "bool",
+ default = "false",
+ allowed = { { "true", "True"}, { "false", "False" } }
+}
+
buildLocation = _OPTIONS["build-location"]
executeBinary = (_OPTIONS["execute-binary"] == "true")
buildGlslang = (_OPTIONS["build-glslang"] == "true")
@@ -254,6 +262,7 @@ enableAsan = (_OPTIONS["enable-asan"] == "true")
dxOnVk = (_OPTIONS["dx-on-vk"] == "true")
enableAftermath = (_OPTIONS["enable-aftermath"] == "true")
defaultSPIRVDirect = (_OPTIONS["default-spirv-direct"] == "true")
+glibcForwardCompatible = (_OPTIONS["glibc-forward-compatible"] == "true")
-- If stdlib embedding is enabled, disable stdlib source embedding by default
disableStdlibSource = enableEmbedStdLib
@@ -278,6 +287,10 @@ end
targetInfo = slangUtil.getTargetInfo()
+printf("target name " .. targetInfo.name)
+if (targetInfo.name == "linux-x86_64") and (glibcForwardCompatible) then
+ targetInfo.name = targetInfo.name .. "-glibc-2.27"
+end
--
-- Update the dependencies for the target
--