Skip to content

Commit 1f1b737

Browse files
committed
Do not include TestConfig.h for all HLK build (#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. (cherry picked from commit 5decc4a)
1 parent f2dee04 commit 1f1b737

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

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)