Skip to content

Commit e7aac8e

Browse files
authored
Include TestConfig.h only if DEFAULT_TEST_DIR is not defined (microsoft#4884)
TestConfig.h is not available in HLK test build. This change enables skipping of the include.
1 parent 6acd11b commit e7aac8e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

include/dxc/Test/HlslTestUtils.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,12 @@
2626
#include "WEXAdapter.h"
2727
#endif
2828
#include "dxc/Support/Unicode.h"
29-
#include "dxc/Test/TestConfig.h"
3029
#include "dxc/DXIL/DxilConstants.h" // DenormMode
3130

31+
#ifndef DEFAULT_TEST_DIR
32+
#include "dxc/Test/TestConfig.h"
33+
#endif
34+
3235
using namespace std;
3336

3437
#ifndef HLSLDATAFILEPARAM

0 commit comments

Comments
 (0)