forked from ruslo/polly
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathgcc-musl.cmake
33 lines (24 loc) · 894 Bytes
/
gcc-musl.cmake
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Copyright (c) 2013-2017, Ruslan Baratov
# All rights reserved.
if(DEFINED POLLY_GCC_MUSL_CMAKE_)
return()
else()
set(POLLY_GCC_MUSL_CMAKE_ 1)
endif()
include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake")
polly_init(
"gcc / c++11 support / musl / static"
"Unix Makefiles"
)
include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake")
set(CROSS_COMPILE_TOOLCHAIN_PATH "$ENV{GCC_MUSL_ROOT}")
string(COMPARE EQUAL "${CROSS_COMPILE_TOOLCHAIN_PATH}" "" _is_empty)
if(_is_empty)
polly_fatal_error("Environment variable GCC_MUSL_ROOT is not set")
endif()
set(CROSS_COMPILE_TOOLCHAIN_PREFIX "x86_64-linux-musl")
set(POLLY_SKIP_SYSROOT TRUE)
set(CROSS_COMPILE_SYSROOT "dummy/path")
include("${CMAKE_CURRENT_LIST_DIR}/compiler/gcc-cross-compile.cmake")
include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx11.cmake")
include("${CMAKE_CURRENT_LIST_DIR}/flags/static.cmake")