mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2025-07-10 08:17:48 -06:00
✨ Simulator HAL and build targets (#22418)
This commit is contained in:
parent
d819de46d3
commit
21011eefa8
37 changed files with 1847 additions and 16 deletions
|
@ -215,7 +215,13 @@ def search_compiler():
|
|||
# Find the current platform compiler by searching the $PATH
|
||||
# which will be in a platformio toolchain bin folder
|
||||
path_regex = re.escape(env['PROJECT_PACKAGES_DIR'])
|
||||
gcc = "g++"
|
||||
|
||||
# See if the environment provides a default compiler
|
||||
try:
|
||||
gcc = env.GetProjectOption('custom_deps_gcc')
|
||||
except:
|
||||
gcc = "g++"
|
||||
|
||||
if env['PLATFORM'] == 'win32':
|
||||
path_separator = ';'
|
||||
path_regex += r'.*\\bin'
|
||||
|
@ -241,6 +247,8 @@ def search_compiler():
|
|||
return filepath
|
||||
|
||||
filepath = env.get('CXX')
|
||||
if filepath == 'CC':
|
||||
filepath = gcc
|
||||
blab("Couldn't find a compiler! Fallback to %s" % filepath)
|
||||
return filepath
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue