浏览代码

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
Greg Roth 2 年之前
父节点
当前提交
00da3abfc5
共有 3 个文件被更改,包括 3 次插入2 次删除
  1. 1 0
      CMakeLists.txt
  2. 1 1
      include/dxc/dxcapi.h
  3. 1 1
      include/dxc/dxcisense.h

+ 1 - 0
CMakeLists.txt

@@ -608,6 +608,7 @@ endif()
 
 include_directories( ${LLVM_INCLUDE_DIR} ${LLVM_MAIN_INCLUDE_DIR})
 
+include_directories( ${LLVM_MAIN_INCLUDE_DIR}/dxc/Support) # HLSL Change
 include_directories( ${LLVM_INCLUDE_DIR}/dxc/Tracing) # HLSL Change
 
 # when crosscompiling import the executable targets from a file

+ 1 - 1
include/dxc/dxcapi.h

@@ -34,7 +34,7 @@
 #else
 
 #include <dlfcn.h>
-#include "dxc/Support/WinAdapter.h"
+#include "WinAdapter.h"
 #endif
 
 struct IMalloc;

+ 1 - 1
include/dxc/dxcisense.h

@@ -14,7 +14,7 @@
 
 #include "dxcapi.h"
 #ifndef _WIN32
-#include "Support/WinAdapter.h"
+#include "WinAdapter.h"
 #endif
 
 typedef enum DxcGlobalOptions