Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Roel Aaij
k40gen
Commits
4ff30f28
Commit
4ff30f28
authored
Jun 04, 2020
by
Roel Aaij
Browse files
Add missing toolchain file.
parent
d4555a55
Changes
1
Hide whitespace changes
Inline
Side-by-side
anaconda-toolchain.cmake
0 → 100644
View file @
4ff30f28
# this one is important
set
(
CMAKE_SYSTEM_NAME Linux
)
set
(
CMAKE_PLATFORM Linux
)
#this one not so much
set
(
CMAKE_SYSTEM_VERSION 1
)
# specify the cross compiler
set
(
CMAKE_C_COMPILER $ENV{CC}
)
# where is the target environment
set
(
CMAKE_FIND_ROOT_PATH $ENV{PREFIX} $ENV{BUILD_PREFIX}/$ENV{HOST}/sysroot
)
# search for programs in the build host directories
set
(
CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER
)
# for libraries and headers in the target directories
set
(
CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY
)
set
(
CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY
)
# god-awful hack because it seems to not run correct tests to determine this:
set
(
__CHAR_UNSIGNED___EXITCODE 1
)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment