-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
144 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index 8f7db9978..db538e1fe 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -633,11 +633,6 @@ include_directories( ${LLVM_INCLUDE_DIR} ${LLVM_MAIN_INCLUDE_DIR}) | ||
|
||
include_directories( ${LLVM_INCLUDE_DIR}/dxc/Tracing) # HLSL Change | ||
|
||
-# when crosscompiling import the executable targets from a file | ||
-if(LLVM_USE_HOST_TOOLS) | ||
- include(CrossCompile) | ||
-endif(LLVM_USE_HOST_TOOLS) | ||
- | ||
if(${CMAKE_SYSTEM_NAME} MATCHES "(FreeBSD|DragonFly)") | ||
# On FreeBSD, /usr/local/* is not used by default. In order to build LLVM | ||
# with libxml2, iconv.h, etc., we must add /usr/local paths. | ||
diff --git a/cmake/modules/TableGen.cmake b/cmake/modules/TableGen.cmake | ||
index 85d720e91..579061e0c 100644 | ||
--- a/cmake/modules/TableGen.cmake | ||
+++ b/cmake/modules/TableGen.cmake | ||
@@ -92,25 +92,6 @@ macro(add_tablegen target project) | ||
set(${project}_TABLEGEN_EXE ${${project}_TABLEGEN} PARENT_SCOPE) | ||
set(${project}_TABLEGEN_TARGET ${${project}_TABLEGEN} PARENT_SCOPE) | ||
|
||
- if(LLVM_USE_HOST_TOOLS) | ||
- if( ${${project}_TABLEGEN} STREQUAL "${target}" ) | ||
- if (NOT CMAKE_CONFIGURATION_TYPES) | ||
- set(${project}_TABLEGEN_EXE "${LLVM_NATIVE_BUILD}/bin/${target}") | ||
- else() | ||
- set(${project}_TABLEGEN_EXE "${LLVM_NATIVE_BUILD}/Release/bin/${target}") | ||
- endif() | ||
- set(${project}_TABLEGEN_EXE ${${project}_TABLEGEN_EXE} PARENT_SCOPE) | ||
- | ||
- add_custom_command(OUTPUT ${${project}_TABLEGEN_EXE} | ||
- COMMAND ${CMAKE_COMMAND} --build . --target ${target} --config Release | ||
- DEPENDS CONFIGURE_LLVM_NATIVE ${target} | ||
- WORKING_DIRECTORY ${LLVM_NATIVE_BUILD} | ||
- COMMENT "Building native TableGen...") | ||
- add_custom_target(${project}-tablegen-host DEPENDS ${${project}_TABLEGEN_EXE}) | ||
- set(${project}_TABLEGEN_TARGET ${project}-tablegen-host PARENT_SCOPE) | ||
- endif() | ||
- endif() | ||
- | ||
if( MINGW ) | ||
if(CMAKE_SIZEOF_VOID_P MATCHES "8") | ||
set_target_properties(${target} PROPERTIES LINK_FLAGS -Wl,--stack,16777216) | ||
diff --git a/tools/llvm-config/CMakeLists.txt b/tools/llvm-config/CMakeLists.txt | ||
index edbd8c950..c7ee5f107 100644 | ||
--- a/tools/llvm-config/CMakeLists.txt | ||
+++ b/tools/llvm-config/CMakeLists.txt | ||
@@ -47,7 +47,6 @@ if(CMAKE_CROSSCOMPILING) | ||
WORKING_DIRECTORY ${LLVM_NATIVE_BUILD} | ||
COMMENT "Building native llvm-config...") | ||
add_custom_target(${project}NativeLLVMConfig DEPENDS ${${project}_LLVM_CONFIG_EXE}) | ||
- add_dependencies(${project}NativeLLVMConfig CONFIGURE_LLVM_NATIVE) | ||
|
||
add_dependencies(llvm-config ${project}NativeLLVMConfig) | ||
endif(CMAKE_CROSSCOMPILING) |