summaryrefslogtreecommitdiffstats
path: root/premake5.lua
diff options
context:
space:
mode:
authorEllie Hermaszewska <ellieh@nvidia.com>2023-04-14 11:59:17 +0800
committerGitHub <noreply@github.com>2023-04-14 11:59:17 +0800
commit5a629b3ccd801a1f0647e971d01481c55d3381c2 (patch)
treea671f7d75f10afd1f43a06351389426bf3ba91c4 /premake5.lua
parent3bbac5f16e9dd47acd2132c0bb2a43393831c450 (diff)
Enable SLANG_ENABLE_DXIL_SUPPORT on non-Windows platforms (#2750)
* Enable SLANG_ENABLE_DXIL_SUPPORT on non-Windows platforms This currently grabs the DXC headers from the system, rather than from external/dxc We should make this consistent by either pulling in the Windows adapter from DXC into external/dxc or by making the Windows builds use <dxc/dxcapi.h> * Update dxcapi and add DXC's WinAdapter * Use our copy of dxcapi.h for non-windows DXC usage * Only set -fms-extensions where necessary * Work around dxc dlclose bug * Neaten and comment dxc-compiler.cpp
Diffstat (limited to 'premake5.lua')
-rw-r--r--premake5.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/premake5.lua b/premake5.lua
index 8475a316d..0998a338f 100644
--- a/premake5.lua
+++ b/premake5.lua
@@ -356,6 +356,10 @@ workspace "slang"
filter { "toolset:clang or gcc*", "language:C++" }
buildoptions { "-Wno-reorder", "-Wno-class-memaccess", "-Wno-invalid-offsetof" }
+ filter { "files:source/compiler-core/slang-dxc-compiler.cpp", "toolset:clang or gcc" }
+ -- For the DXC headers
+ buildoptions { "-fms-extensions" }
+
filter { "toolset:gcc*" }
buildoptions { "-Wno-implicit-fallthrough", "-Wno-maybe-uninitialized" }