mirror of
https://github.com/ArduPilot/ardupilot.git
synced 2026-10-08 02:57:16 +08: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:
committed by
Andrew Tridgell
parent
fd9423b254
commit
513a6b6206
@@ -433,9 +433,14 @@ class Board:
|
||||
]
|
||||
|
||||
if cfg.env.DEST_OS == 'darwin':
|
||||
env.LINKFLAGS += [
|
||||
'-Wl,-dead_strip',
|
||||
]
|
||||
if self.cc_version_gte(cfg, 15, 0):
|
||||
env.LINKFLAGS += [
|
||||
'-Wl,-dead_strip,-ld_classic',
|
||||
]
|
||||
else:
|
||||
env.LINKFLAGS += [
|
||||
'-Wl,-dead_strip',
|
||||
]
|
||||
else:
|
||||
env.LINKFLAGS += [
|
||||
'-fno-exceptions',
|
||||
|
||||
Reference in New Issue
Block a user