Skip to content

Commit

Permalink
Include TestConfig.h only if DEFAULT_TEST_DIR is not defined (microso…
Browse files Browse the repository at this point in the history
…ft#4884)

TestConfig.h is not available in HLK test build.
This change enables skipping of the include.
  • Loading branch information
hekota authored Dec 15, 2022
1 parent 6acd11b commit e7aac8e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion include/dxc/Test/HlslTestUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e7aac8e

Please sign in to comment.