Skip to content

Commit

Permalink
[SCons] Platform agnostic default toolchain (GNU).
Browse files Browse the repository at this point in the history
Create the SCons Environment with an empty PLATFORM variable to force
the default tools to use the GNU toolchain.

Platform specific toolchains are then setup in our custom tools.
  • Loading branch information
Faless committed Dec 20, 2022
1 parent 104997e commit c6211b4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ elif ARGUMENTS.get("platform", ""):
else:
raise ValueError("Could not detect platform automatically, please specify with platform=<platform>")

env = Environment(tools=["default"])
# Default tools with no platform defaults to gnu toolchain.
# We apply platform specific toolchains via our custom tools.
env = Environment(tools=["default"], PLATFORM="")

# Default num_jobs to local cpu count if not user specified.
# SCons has a peculiarity where user-specified options won't be overridden
Expand Down

0 comments on commit c6211b4

Please sign in to comment.