Commit 4233d157 authored by Gus Grubba's avatar Gus Grubba Committed by GitHub

Merge pull request #5004 from dogmaphobic/xcode

Xcode 8.3 has issues on how MAVLink accesses message structure members.
parents 982232c1 2b2397a8
...@@ -199,6 +199,10 @@ MacBuild | LinuxBuild { ...@@ -199,6 +199,10 @@ MacBuild | LinuxBuild {
MacBuild { MacBuild {
# Latest clang version has a buggy check for this which cause Qt headers to throw warnings on qmap.h # Latest clang version has a buggy check for this which cause Qt headers to throw warnings on qmap.h
QMAKE_CXXFLAGS_WARN_ON += -Wno-return-stack-address QMAKE_CXXFLAGS_WARN_ON += -Wno-return-stack-address
# Xcode 8.3 has issues on how MAVLink accesses (packed) message structure members.
# Note that this will fail when Xcode version reaches 10.x.x
XCODE_VERSION = $$system($$PWD/tools/get_xcode_version.sh)
greaterThan(XCODE_VERSION, 8.2.0): QMAKE_CXXFLAGS_WARN_ON += -Wno-address-of-packed-member
} }
} }
......
#!/bin/bash
xcodebuild -version 2>&1 | (head -n1) | awk '{print $2}'
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment