From 8362c2d46e2da0c20fbd3daf511ccdf425f9a1f0 Mon Sep 17 00:00:00 2001 From: kaizhangNV <149626564+kaizhangNV@users.noreply.github.com> Date: Fri, 19 Apr 2024 21:27:10 -0700 Subject: Create a new release build for linux_x64. (#3989) --- premake5.lua | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'premake5.lua') 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 -- -- cgit v1.2.3