-
Notifications
You must be signed in to change notification settings - Fork 200
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2204 from skliper/fix2120-clang_support
Fix #2120, Support clang for whole archive flags
- Loading branch information
Showing
2 changed files
with
25 additions
and
1 deletion.
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,23 @@ | ||
# This example toolchain file describes the cross compiler to use for | ||
# the target architecture indicated in the configuration file. | ||
|
||
# Basic cross system configuration | ||
SET(CMAKE_SYSTEM_NAME Linux) | ||
SET(CMAKE_SYSTEM_VERSION 1) | ||
SET(CMAKE_SYSTEM_PROCESSOR i686) | ||
|
||
# Specify the cross compiler executables | ||
# Typically these would be installed in a home directory or somewhere | ||
# in /opt. However in this example the system compiler is used. | ||
SET(CMAKE_C_COMPILER "/usr/bin/clang") | ||
SET(CMAKE_CXX_COMPILER "/usr/bin/clang++") | ||
|
||
# Configure the find commands | ||
SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) | ||
SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY NEVER) | ||
SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE NEVER) | ||
|
||
# These variable settings are specific to cFE/OSAL and determines which | ||
# abstraction layers are built when using this toolchain | ||
SET(CFE_SYSTEM_PSPNAME "pc-linux") | ||
SET(OSAL_SYSTEM_OSTYPE "posix") |
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