Cross-compile from x64 to arm64 (#20)

This commit is contained in:
Hidenori Matsubayashi
2021-07-27 14:17:50 +09:00
committed by GitHub
parent d6d8ba9d90
commit 0a3ef762f5
6 changed files with 65 additions and 7 deletions
+6
View File
@@ -15,6 +15,12 @@ if(FLUTTER_TARGET_PLATFORM_SYSROOT)
set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
# Basically we use this include when we got the following error:
# fatal error: 'bits/c++config.h' file not found
if(FLUTTER_TARGET_PLATFORM_SYSROOT)
include_directories(SYSTEM ${FLUTTER_SYSTEM_INCLUDE_DIRECTORIES})
endif()
endif()
# Configure build options.