41c10d4db8
Qt 6.5 will require emscripten 3.1.25. This is not the most recent version (3.1.27 at the time of writing), however .26 and .27 make changes to stack layout and size which require further investigation. Change-Id: Ibe285ef160d450d6b2c63a7fb71d3561b0032e37 Reviewed-by: Aleksandr Reviakin <aleksandr.reviakin@qt.io> Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io> Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
26 lines
864 B
Plaintext
26 lines
864 B
Plaintext
defineReplace(qtEmccRecommendedVersion) {
|
|
return (3.1.25)
|
|
}
|
|
|
|
defineReplace(qtSystemEmccVersion) {
|
|
EMCC = $$system("emcc -v 2>&1", lines)
|
|
EMCC_LINE = $$find(EMCC, "^.*\b(emcc)\b.*$")
|
|
E_VERSION = $$section(EMCC_LINE, " ", 9,9)
|
|
return ($${E_VERSION})
|
|
}
|
|
|
|
defineTest(qtConfTest_emccVersion) {
|
|
|
|
REQ_VERSION = $$qtEmccRecommendedVersion()
|
|
EMCC_VERSION = $$qtSystemEmccVersion()
|
|
|
|
!defined(QT_EMCC_VERSION, var):!equals(EMCC_VERSION, $${REQ_VERSION}) {
|
|
warning ("You should use the recommended Emscripten version $$REQ_VERSION with this Qt. You have $${EMCC_VERSION} ")
|
|
}
|
|
contains(TEMPLATE, .*app) {
|
|
!equals(QT_EMCC_VERSION, $$EMCC_VERSION) {
|
|
warning("This Qt was built with Emscripten version $${QT_EMCC_VERSION}. You have $${EMCC_VERSION}. The difference may cause issues.")
|
|
}
|
|
}
|
|
}
|