Explorar o código

Include TestConfig.h only if DEFAULT_TEST_DIR is not defined (#4884)

TestConfig.h is not available in HLK test build.
This change enables skipping of the include.
Helena Kotas %!s(int64=2) %!d(string=hai) anos
pai
achega
e7aac8e0f5
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      include/dxc/Test/HlslTestUtils.h

+ 4 - 1
include/dxc/Test/HlslTestUtils.h

@@ -26,9 +26,12 @@
 #include "WEXAdapter.h"
 #endif
 #include "dxc/Support/Unicode.h"
-#include "dxc/Test/TestConfig.h"
 #include "dxc/DXIL/DxilConstants.h" // DenormMode
 
+#ifndef DEFAULT_TEST_DIR
+#include "dxc/Test/TestConfig.h"
+#endif
+
 using namespace std;
 
 #ifndef HLSLDATAFILEPARAM