HomeAleph Objects Inc

macOS: Use tool environment to ensure tests load matching Qt libraries

Authored by Tor Arne Vestbø <tor.arne.vestbo@qt.io> on Jan 11 2019, 4:12 AM.

Description

macOS: Use tool environment to ensure tests load matching Qt libraries

Linking with a framework suffix to pick up the debug version of
libraries doesn't work as long as the dependencies picked up from prl
files are not rewritten to also include the suffix. The result is that
we end up loading both release and debug versions of the Qt libraries.

Use the target environment (target_wrapper.sh) to set the image suffix
instead, which means 'make check' will automatically work.

Change-Id: I60b0840760f68e579c270245d394e1dd609a0ebb
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>

Event Timeline

Tor Arne Vestbø <tor.arne.vestbo@qt.io> committed rQTB7044409c878f: macOS: Use tool environment to ensure tests load matching Qt libraries (authored by Tor Arne Vestbø <tor.arne.vestbo@qt.io>).Jan 12 2019, 5:18 AM