From 5a629b3ccd801a1f0647e971d01481c55d3381c2 Mon Sep 17 00:00:00 2001 From: Ellie Hermaszewska Date: Fri, 14 Apr 2023 11:59:17 +0800 Subject: 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 * 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 --- premake5.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'premake5.lua') 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" } -- cgit v1.2.3