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"