diff options
author | Michal Klocek <michal.klocek@qt.io> | 2020-05-27 13:55:33 +0200 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2020-05-28 21:05:44 +0000 |
commit | 6e695c0fb6b1f4cd28ef7bea615a8621fd76a168 (patch) | |
tree | b39083c3541ba12c8cea0d2fa593c8865d7fbc14 /mkspecs | |
parent | 6a1ce0c8061abb0b529cee8dd50db403460c5105 (diff) |
Override debug generation request on mac for toolchain.prf
Override request for debug info during compiler 'test',
otherwise call to dsymutil will fail call with /dev/null.
Use case here is to pass for example -glldb with CXXFLAGS.
Fixes: QTBUG-62953
Fixes: QTBUG-84467
Change-Id: Ief8f987afb40d0b90da732195d67d476e7bb3aff
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
(cherry picked from commit d479c6db2c8d723994ba2eee8f54f94dae826c84)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'mkspecs')
-rw-r--r-- | mkspecs/features/toolchain.prf | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mkspecs/features/toolchain.prf b/mkspecs/features/toolchain.prf index 03612e5689..9d790f62bc 100644 --- a/mkspecs/features/toolchain.prf +++ b/mkspecs/features/toolchain.prf @@ -193,7 +193,7 @@ isEmpty($${target_prefix}.INCDIRS) { cxx_flags += $$QMAKE_LFLAGS_SHLIB -o $$QMAKE_SYSTEM_NULL_DEVICE -v else: darwin:clang: \ # Need to link to pick up library paths - cxx_flags += $$QMAKE_LFLAGS_SHLIB -o /dev/null -v -Wl,-v + cxx_flags += -g0 $$QMAKE_LFLAGS_SHLIB -o /dev/null -v -Wl,-v else: \ # Just preprocess, might not pick up library paths cxx_flags += -E -v |