From e7aac8e0f5a0ff3e3dbc16eaf7a69a5739a97265 Mon Sep 17 00:00:00 2001 From: Helena Kotas Date: Thu, 15 Dec 2022 07:02:02 -0800 Subject: [PATCH] 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. --- include/dxc/Test/HlslTestUtils.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/dxc/Test/HlslTestUtils.h b/include/dxc/Test/HlslTestUtils.h index 548781a668..06c16c5cbc 100644 --- a/include/dxc/Test/HlslTestUtils.h +++ b/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