Skip to content

Commit b13f08d

Browse files
authored
Merge pull request #265 from intel-kzhavoro/cross_12
Fix cross-build
2 parents 7bb4175 + cdef54f commit b13f08d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

CMakeLists.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ set(CMAKE_MODULE_PATH
1414

1515
include(CMakeFunctions)
1616

17+
if(LLVM_USE_HOST_TOOLS)
18+
include(CrossCompile)
19+
llvm_create_cross_target(${PROJECT_NAME} NATIVE "" Release)
20+
endif()
21+
1722
if(CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
1823
set(USE_PREBUILT_LLVM ON)
1924

@@ -55,7 +60,7 @@ include(AddLLVM)
5560
include(TableGen)
5661

5762
if (NOT WIN32)
58-
add_subdirectory( linux_linker )
63+
add_subdirectory( linux_linker bin )
5964
endif()
6065

6166
if (CMAKE_SIZEOF_VOID_P EQUAL 4)

0 commit comments

Comments
 (0)