Skip to content

Commit f2dee04

Browse files
committed
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. (cherry picked from commit e7aac8e)
1 parent b6a9ac0 commit f2dee04

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

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)