Skip to content

Commit 88fcc1b

Browse files
authored
[SPIR-V] Fix build with -DENABLE_SPIRV_CODEGEN=OFF (microsoft#6933)
A 'using' was not gated. Signed-off-by: Nathan Gauër <[email protected]>
1 parent 0372fb7 commit 88fcc1b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/DxcSupport/HLSLOptions.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ using namespace llvm::opt;
3131
using namespace dxc;
3232
using namespace hlsl;
3333
using namespace hlsl::options;
34+
#ifdef ENABLE_SPIRV_CODEGEN
3435
using namespace clang::spirv;
36+
#endif
3537

3638
#define PREFIX(NAME, VALUE) static const char *const NAME[] = VALUE;
3739
#include "dxc/Support/HLSLOptions.inc"

0 commit comments

Comments
 (0)