Skip to content

Commit

Permalink
[SPIR-V] Fix build with -DENABLE_SPIRV_CODEGEN=OFF
Browse files Browse the repository at this point in the history
A 'using' was not gated.

Signed-off-by: Nathan Gauër <[email protected]>
  • Loading branch information
Keenuts committed Sep 25, 2024
1 parent 0372fb7 commit 44fdca1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/DxcSupport/HLSLOptions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 44fdca1

Please sign in to comment.