Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Adding ARM cross compilation toolchain
- Fixing some cross compilation issues - Fixing non standard include
- Loading branch information
Showing
5 changed files
with
36 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
set(CMAKE_SYSTEM_NAME Linux) | ||
This comment has been minimized.
Sorry, something went wrong. |
||
|
||
set(CMAKE_CROSSCOMPILING ON) | ||
|
||
# Set the gcc Compiler | ||
set(CMAKE_CXX_COMPILER arm-linux-gnueabihf-g++-4.8) | ||
set(CMAKE_C_COMPILER arm-linux-gnueabihf-gcc-4.8) | ||
|
||
set(HPX_WITH_GENERIC_CONTEXT_COROUTINES ON CACHE BOOL "enable generic coroutines") | ||
|
||
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) | ||
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) | ||
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) | ||
set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) | ||
|
||
This comment has been minimized.
Sorry, something went wrong.
hkaiser
Member
|
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 |
---|---|---|
|
@@ -14,12 +14,24 @@ macro(create_cmake_test name hpx_dir) | |
add_custom_target(${name}.make_build_dir | ||
COMMAND "${CMAKE_COMMAND}" -E make_directory "${build_dir}" VERBATIM | ||
) | ||
set(ADDITIONAL_CMAKE_OPTIONS) | ||
if(CMAKE_TOOLCHAIN_FILE) | ||
set(ADDITIONAL_CMAKE_OPTIONS -DCMAKE_TOOLCHAIN_FILE=${CMAKE_TOOLCHAIN_FILE}) | ||
endif() | ||
if(CMAKE_MAKE_COMMAND) | ||
set(ADDITIONAL_CMAKE_OPTIONS ${ADDITIONAL_CMAKE_OPTIONS} -DCMAKE_MAKE_COMMAND=${CMAKE_MAKE_COMMAND}) | ||
endif() | ||
if(CMAKE_SYSROOT) | ||
set(ADDITIONAL_CMAKE_OPTIONS ${ADDITIONAL_CMAKE_OPTIONS} -DCMAKE_SYSROOT=${CMAKE_SYSROOT}) | ||
endif() | ||
This comment has been minimized.
Sorry, something went wrong.
hkaiser
Member
|
||
add_custom_target(${name}.make_configure | ||
COMMAND | ||
"${CMAKE_COMMAND}" -E chdir "${build_dir}" "${CMAKE_COMMAND}" | ||
"${hpx_SOURCE_DIR}/tests/unit/build/src" | ||
-DHPX_DIR=${hpx_dir} | ||
${ADDITIONAL_CMAKE_OPTIONS} | ||
-DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER} | ||
-DCMAKE_C_COMPILER=${CMAKE_C_COMPILER} | ||
-DCMAKE_CXX_FLAGS=${CMAKE_CXX_FLAGS_SAFE} | ||
-DCMAKE_BUILD_TYPE=$<CONFIGURATION> VERBATIM) | ||
add_dependencies(${name}.make_configure ${name}.make_build_dir hpx iostreams_component) | ||
|
@@ -99,7 +111,12 @@ set(tests | |
build_dir | ||
install_dir) | ||
|
||
foreach(system cmake pkgconfig) | ||
set(build_systems cmake) | ||
if(NOT CMAKE_TOOLCHAIN_FILE) | ||
set(build_systems ${build_sytems} pkgconfig) | ||
endif() | ||
|
||
foreach(system ${build_systems}) | ||
add_hpx_pseudo_target(tests.unit.build.${system}) | ||
foreach(test ${tests}) | ||
add_hpx_pseudo_target(tests.unit.build.${system}.${test}) | ||
|
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
You missed the copyright and license in this file