Browse Source

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 2 years ago
parent
commit
e7aac8e0f5
1 changed files with 4 additions and 1 deletions
  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