868ded6d87
Emscripten version 1.39.0 and above are based upon upstream LLVM, which does not contain BINARYEN_TRAP_MODE Fixes: QTBUG-80691 Change-Id: I6129f84a31a607c202e13847b50705ef1c809630 Reviewed-by: jian liang <jianliang79@gmail.com> Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
24 lines
822 B
Plaintext
24 lines
822 B
Plaintext
defineReplace(qtEmccRecommendedVersion) {
|
|
return (1.38.27)
|
|
}
|
|
|
|
defineReplace(qtSystemEmccVersion) {
|
|
E_VERSION = $$system("emcc -v 2>&1 | perl -alne $$shell_quote($_ = $F[9]; s/://; print;) ")
|
|
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.")
|
|
}
|
|
}
|
|
}
|