summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@qt.io>2021-03-02 12:36:27 +0100
committerJoerg Bornemann <joerg.bornemann@qt.io>2021-03-04 09:55:41 +0100
commit7c62caa3555d247be569102d8f01b3e7ae362b8a (patch)
tree7915b3cc57c1d4dfac32c739e9db6e80302ee773 /bin
parent1f8f13cbe7a3a015ae62ff1524b22422adc9e094 (diff)
Make toolchain inspection more robust
QtAutoDetect.cmake did read the (possibly detected) toolchain file and looked for the string "The Android Open Source Project" to deduce that we want to build for Android. This has been done, because we're autodetecting the platform before the first project comment, i.e. before the toolchain file is loaded. This magic string detection is a bit fragile, and we need a similar approach for WebAssembly. A more robust approach would be to fetch the value of CMAKE_SYSTEM_NAME from the toolchain file without actually loading it. Now, we run a CMake script that includes the toolchain file and prints variables were interested in. The calling code reads these variables and stores them in prefixed variables in the current scope. Change-Id: Ide9ea3054e1453d17129523e1ec86ecaed55af2a Reviewed-by: Craig Scott <craig.scott@qt.io> Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Diffstat (limited to 'bin')
0 files changed, 0 insertions, 0 deletions