-
Notifications
You must be signed in to change notification settings - Fork 6.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[toolchain windows] set CMAKE_SYSTEM_PROCESSOR (#24100)
* [toolchain windows] set CMAKE_SYSTEM_NAME and CMAKE_SYSTEM_PROCESSOR In specific, I did this for the cpuinfo PR - I realized the reason that cpuinfo doesn't support arm64 windows cross compilation is because we don't set CMAKE_SYSTEM_PROCESSOR. * correctly set CMAKE_CROSSCOMPILING * start fixin libraries * more changes: - gainput: remove line - glog: remove try_run when cross compiling - windows.cmake: set CMAKE_SYSTEM_VERSION * more patches - mapnik: set BOOST_REGEX_HAS_ICU to avoid check_cxx_source_runs - orc: set HAS_PRE_1970 and HAS_POST_2038 for same - seal: change out check_cxx_source_runs for check_cxx_source_compiles * more changes * fix x86-windows * fix qpid-proton, glog * build corrade-rc * fix x64-uwp ports * forgot to _actually_ always build corrade-rc .,. * Replay #22831 * Dedupe CMAKE_SYSTEM_NAME settings. * Add quotes for corrade_rc_param Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com> * Update version DB. Co-authored-by: nicole mazzuca <mazzucan@outlook.com> Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com> Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com>
- Loading branch information
1 parent
585ff44
commit 9ccd693
Showing
59 changed files
with
529 additions
and
55 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
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,8 @@ | ||
--- a/CMakeLists.txt | ||
+++ a/CMakeLists.txt | ||
@@ -115,3 +115,4 @@ | ||
+target_compile_features(caf_internal INTERFACE cxx_std_17) | ||
# TODO: simply set CXX_STANDARD when switching to CMake ≥ 3.9.6 | ||
-if(NOT CMAKE_CROSSCOMPILING) | ||
+if(0) | ||
try_compile(caf_has_cxx_17 |
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,27 @@ | ||
--- a/src/Corrade/Utility/CMakeLists.txt | ||
+++ b/src/Corrade/Utility/CMakeLists.txt | ||
@@ -185,13 +185,12 @@ | ||
# corrade-rc when generating WinRT targets by setting | ||
# set_target_properties(corrade-rc PROPERTIES VS_WINRT_COMPONENT OFF) | ||
# Then this would be if(NOT CMAKE_CROSSCOMPILING OR CORRADE_TARGET_WINDOWS_RT). | ||
# However, it seems like this feature never materialized, as doing this will | ||
# result in corrade-rc that's looking for vcruntime140_app.dll in order to be | ||
# run. Last checked: Nov 2019. | ||
-if(NOT CMAKE_CROSSCOMPILING) | ||
# Sources for standalone corrade-rc | ||
set(CorradeUtilityRc_SRCS | ||
Arguments.cpp | ||
Debug.cpp | ||
Directory.cpp | ||
Configuration.cpp | ||
@@ -235,9 +234,10 @@ | ||
if(CORRADE_TARGET_UNIX) | ||
target_link_libraries(corrade-rc PRIVATE ${CMAKE_DL_LIBS}) | ||
endif() | ||
set_target_properties(corrade-rc PROPERTIES FOLDER "Corrade/Utility") | ||
install(TARGETS corrade-rc DESTINATION ${CORRADE_BINARY_INSTALL_DIR}) | ||
|
||
+if(NOT CMAKE_CROSSCOMPILING) | ||
# Corrade::rc target alias for superprojects | ||
add_executable(Corrade::rc ALIAS corrade-rc) | ||
endif() |
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
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,17 @@ | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -60,13 +60,13 @@ | ||
if(CMAKE_SYSTEM_PROCESSOR MATCHES "^mips") | ||
set(PROCESSOR_IS_MIPS TRUE) | ||
elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "^arm") | ||
set(PROCESSOR_IS_ARM TRUE) | ||
elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "^aarch64") | ||
set(PROCESSOR_IS_AARCH64 TRUE) | ||
-elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "(x86_64)|(AMD64|amd64)|(^i.86$)") | ||
+elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "(x86)|(AMD64|amd64)|(^i.86$)") | ||
set(PROCESSOR_IS_X86 TRUE) | ||
elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "^(powerpc|ppc)") | ||
set(PROCESSOR_IS_POWER TRUE) | ||
endif() | ||
|
||
macro(add_cpu_features_headers_and_sources HDRS_LIST_NAME SRCS_LIST_NAME) |
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
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,18 @@ | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -401,4 +401,7 @@ | ||
if (WITH_SYMBOLIZE) | ||
if (WIN32 OR CYGWIN) | ||
+ if(CMAKE_CROSSCOMPILING) | ||
+ set(HAVE_SYMBOLIZE 0) | ||
+ else() | ||
cmake_push_check_state (RESET) | ||
set (CMAKE_REQUIRED_LIBRARIES DbgHelp) | ||
@@ -430,6 +433,7 @@ | ||
]=] HAVE_SYMBOLIZE) | ||
|
||
cmake_pop_check_state () | ||
+ endif() | ||
|
||
if (HAVE_SYMBOLIZE) | ||
set (HAVE_STACKTRACE 1) |
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
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,20 @@ | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -11,12 +11,17 @@ | ||
libcopp | ||
VERSION "1.4.1" | ||
DESCRIPTION "Cross-platform coroutine library in C++ ." | ||
HOMEPAGE_URL "https://libcopp.atframe.work" | ||
LANGUAGES C CXX ASM) | ||
|
||
+# libcopp requires x86 to be called i386 | ||
+if(CMAKE_SYSTEM_PROCESSOR STREQUAL "x86") | ||
+ set(CMAKE_SYSTEM_PROCESSOR i386) | ||
+endif() | ||
+ | ||
# ###################################################################################################################### | ||
include("${PROJECT_SOURCE_DIR}/project/cmake/ProjectBuildOption.cmake") | ||
|
||
# # ############################################################################# | ||
echowithcolor(COLOR GREEN "-- Build Type: ${CMAKE_BUILD_TYPE}") | ||
|
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
Oops, something went wrong.