diff options
author | Martin Storsjö <martin@martin.st> | 2018-06-14 15:54:37 +0300 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2018-06-21 11:55:20 +0000 |
commit | 22e9ff9c164d9912fcbe7987f4d39e467b0a600f (patch) | |
tree | 1b3bbf793df31972c52d23a6ba2acaf97df57c2f /mkspecs/common/mac.conf | |
parent | 5a68ce07bd32eeb86ea1b0141c3a4fe20acc86a8 (diff) |
mkspecs: Allow specifying a CROSS_COMPILE for mac/clang targets
This allows distinguishing between these tools and tools for the host,
when cross compiling.
While mac tools normally only are available on macOS, there are third
party efforts to port them to other platforms. In these cases, it
might be useful to use a prefix (either some sort of triplet prefix,
or an absolute path) to distinguish between the host build platform
compilers/tools and the ones for the cross target.
The use of this variable matches the one used in a lot of other
mkspecs, and shouldn't cause any issues for those who aren't setting
it.
Change-Id: Iaeba571d955ea79ed1249989fcc525eb1eaf1f5c
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
Diffstat (limited to 'mkspecs/common/mac.conf')
-rw-r--r-- | mkspecs/common/mac.conf | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mkspecs/common/mac.conf b/mkspecs/common/mac.conf index d5e559ee12..61bea952b2 100644 --- a/mkspecs/common/mac.conf +++ b/mkspecs/common/mac.conf @@ -43,9 +43,9 @@ QMAKE_WAYLAND_SCANNER = wayland-scanner QMAKE_ACTOOL = actool QMAKE_DSYMUTIL = dsymutil -QMAKE_STRIP = strip +QMAKE_STRIP = $${CROSS_COMPILE}strip QMAKE_STRIPFLAGS_LIB += -S -x -QMAKE_AR = ar cq -QMAKE_RANLIB = ranlib -s -QMAKE_NM = nm -P +QMAKE_AR = $${CROSS_COMPILE}ar cq +QMAKE_RANLIB = $${CROSS_COMPILE}ranlib -s +QMAKE_NM = $${CROSS_COMPILE}nm -P |