mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2025-03-10 00:23:01 +00:00
parent
4ef5372151
commit
e2c0150fa8
1 changed files with 3 additions and 5 deletions
|
@ -1,7 +1,7 @@
|
||||||
#
|
#
|
||||||
# preprocessor.py
|
# preprocessor.py
|
||||||
#
|
#
|
||||||
import subprocess, os
|
import subprocess
|
||||||
|
|
||||||
nocache = 1
|
nocache = 1
|
||||||
verbose = 0
|
verbose = 0
|
||||||
|
@ -75,9 +75,7 @@ def search_compiler(env):
|
||||||
|
|
||||||
path_separator = ':'
|
path_separator = ':'
|
||||||
gcc_exe = '*g++'
|
gcc_exe = '*g++'
|
||||||
|
if env['PLATFORM'] == 'win32':
|
||||||
sysname = os.uname().sysname
|
|
||||||
if sysname == 'Windows':
|
|
||||||
path_separator = ';'
|
path_separator = ';'
|
||||||
gcc_exe += ".exe"
|
gcc_exe += ".exe"
|
||||||
|
|
||||||
|
@ -97,7 +95,7 @@ def search_compiler(env):
|
||||||
for ppath in envpath:
|
for ppath in envpath:
|
||||||
for gpath in ppath.glob(gcc_exe):
|
for gpath in ppath.glob(gcc_exe):
|
||||||
# Skip macOS Clang
|
# Skip macOS Clang
|
||||||
if gpath != 'usr/bin/g++' or sysname != 'Darwin':
|
if gpath != 'usr/bin/g++' or env['PLATFORM'] != 'darwin':
|
||||||
gccpath = str(gpath.resolve())
|
gccpath = str(gpath.resolve())
|
||||||
break
|
break
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue