Skip to content

Commit 00da3ab

Browse files
author
Greg Roth
authored
Correct WinAdapter path assumptions in public headers (#5003)
dxcapi.h and dxcisense.h had inconsistent and unhelpful for release include paths to find WinAdapter.h. By adding the necessary -I flag, the include can be found without including the paths Fixes #4918
1 parent 7cb49f2 commit 00da3ab

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -608,6 +608,7 @@ endif()
608608

609609
include_directories( ${LLVM_INCLUDE_DIR} ${LLVM_MAIN_INCLUDE_DIR})
610610

611+
include_directories( ${LLVM_MAIN_INCLUDE_DIR}/dxc/Support) # HLSL Change
611612
include_directories( ${LLVM_INCLUDE_DIR}/dxc/Tracing) # HLSL Change
612613

613614
# when crosscompiling import the executable targets from a file

include/dxc/dxcapi.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
#else
3535

3636
#include <dlfcn.h>
37-
#include "dxc/Support/WinAdapter.h"
37+
#include "WinAdapter.h"
3838
#endif
3939

4040
struct IMalloc;

include/dxc/dxcisense.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
#include "dxcapi.h"
1616
#ifndef _WIN32
17-
#include "Support/WinAdapter.h"
17+
#include "WinAdapter.h"
1818
#endif
1919

2020
typedef enum DxcGlobalOptions

0 commit comments

Comments
 (0)