Skip to content

Commit 5decc4a

Browse files
authored
Do not include TestConfig.h for all HLK build (microsoft#4887)
TestConfig.h is not available in HLK test build. The test library uses _HLK_CONF define to distinguish between Exec tests-only and HLK-only code.
1 parent 20bb3d0 commit 5decc4a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

include/dxc/Test/HlslTestUtils.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@
2828
#include "dxc/Support/Unicode.h"
2929
#include "dxc/DXIL/DxilConstants.h" // DenormMode
3030

31-
#ifndef DEFAULT_TEST_DIR
31+
#ifdef _HLK_CONF
32+
#define DEFAULT_TEST_DIR ""
33+
#else
3234
#include "dxc/Test/TestConfig.h"
3335
#endif
3436

0 commit comments

Comments
 (0)