diff options
Diffstat (limited to 'project/cmake/toolchain.py')
-rw-r--r-- | project/cmake/toolchain.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/project/cmake/toolchain.py b/project/cmake/toolchain.py index 7966192..32831b2 100644 --- a/project/cmake/toolchain.py +++ b/project/cmake/toolchain.py @@ -138,6 +138,12 @@ class Toolchain(abc.ABC): @staticmethod def detect(hint, platform, build_dir): if hint is ToolchainType.AUTO: + # If the platform wasn't specified, auto-detect everything. + # There's no need to set -mXX flags, etc. + if platform is None: + return Auto() + # If a specific platform was requested, we might need to set some + # CMake/compiler flags. if on_windows(): # We need to specify the -A parameter. This might break if # none of the Visual Studio generators are available, but the |