From 44fdca16437a009a0e392222118dc99c7d0154fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nathan=20Gau=C3=ABr?= Date: Wed, 25 Sep 2024 18:05:33 +0200 Subject: [PATCH] [SPIR-V] Fix build with -DENABLE_SPIRV_CODEGEN=OFF MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A 'using' was not gated. Signed-off-by: Nathan Gauër --- lib/DxcSupport/HLSLOptions.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/DxcSupport/HLSLOptions.cpp b/lib/DxcSupport/HLSLOptions.cpp index 4fa74d6759..3daf880f6d 100644 --- a/lib/DxcSupport/HLSLOptions.cpp +++ b/lib/DxcSupport/HLSLOptions.cpp @@ -31,7 +31,9 @@ using namespace llvm::opt; using namespace dxc; using namespace hlsl; using namespace hlsl::options; +#ifdef ENABLE_SPIRV_CODEGEN using namespace clang::spirv; +#endif #define PREFIX(NAME, VALUE) static const char *const NAME[] = VALUE; #include "dxc/Support/HLSLOptions.inc"