mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-26 10:38:28 -04:00
Tools: ardupilotwaf: use classic clang linker when compiling on macOS
- Fix issue where linker fails with Xcode 15.3. - Add check for CC_VERSION. Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com>
This commit is contained in:
parent
7298e14ca3
commit
a62c50fb21
@ -432,9 +432,14 @@ class Board:
|
|||||||
]
|
]
|
||||||
|
|
||||||
if cfg.env.DEST_OS == 'darwin':
|
if cfg.env.DEST_OS == 'darwin':
|
||||||
env.LINKFLAGS += [
|
if self.cc_version_gte(cfg, 15, 0):
|
||||||
'-Wl,-dead_strip',
|
env.LINKFLAGS += [
|
||||||
]
|
'-Wl,-dead_strip,-ld_classic',
|
||||||
|
]
|
||||||
|
else:
|
||||||
|
env.LINKFLAGS += [
|
||||||
|
'-Wl,-dead_strip',
|
||||||
|
]
|
||||||
else:
|
else:
|
||||||
env.LINKFLAGS += [
|
env.LINKFLAGS += [
|
||||||
'-fno-exceptions',
|
'-fno-exceptions',
|
||||||
|
Loading…
Reference in New Issue
Block a user