Skip to content

Commit

Permalink
Do not include TestConfig.h for all HLK build (#4887)
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
hekota committed Dec 16, 2022
1 parent f2dee04 commit 1f1b737
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion include/dxc/Test/HlslTestUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@
#include "dxc/Support/Unicode.h"
#include "dxc/DXIL/DxilConstants.h" // DenormMode

#ifndef DEFAULT_TEST_DIR
#ifdef _HLK_CONF
#define DEFAULT_TEST_DIR ""
#else
#include "dxc/Test/TestConfig.h"
#endif

Expand Down

0 comments on commit 1f1b737

Please sign in to comment.