Explorar el 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 hace 2 años
padre
commit
e7aac8e0f5
Se han modificado 1 ficheros con 4 adiciones y 1 borrados
  1. 4 1
      include/dxc/Test/HlslTestUtils.h

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

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