Skip to content
Commit 0b3c65fe authored by Mark Ruvald Pedersen's avatar Mark Ruvald Pedersen Committed by Anas Nashif
Browse files

cmake: Toolchain abstraction: optimizations



Introduce toolchain_cc_optimize_for_* family of macros.
Each macro represents a general optimization class.
Each macro is then responsible for setting an output variable to that
class-of-optimization's flag.
The names of these output variables are decided from the root
CMakeLists.txt.

No functional change expected.

Clang's optimization flags are compatible with gcc, and are thus
inherited.

This is motivated by the wish to abstract Zephyr's usage of toolchains,
permitting easier porting to other (commercial) toolchains.

Signed-off-by: default avatarMark Ruvald Pedersen <mped@oticon.com>
parent d5b2834f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment