diff options
| author | Mikolaj Boc <mikolaj.boc@qt.io> | 2023-07-25 14:01:09 +0200 |
|---|---|---|
| committer | Mikolaj Boc <mikolaj.boc@qt.io> | 2023-07-27 19:24:28 +0200 |
| commit | 44d3d879309505426a663c3ebee12934ac4e4fce (patch) | |
| tree | 171d310a92a437ec50c4a48cea5bfecd539ddd20 /src/tools/moc/preprocessor.cpp | |
| parent | ea0b7dafb287ed3d044b574fb7671346bca087e4 (diff) | |
Use a sanitized JS export name for WASM modules (qmake)
Previously, a target name with a JS special character (like, -, for
example), would lead to an invalid export name being generated for
WASM modules. Sanitize these by replacing any non-alphanumeric
character with underscores, as is done for feature names.
This is a qmake version of 58a47edda15fe365220f8502ad42a7bd09bf83b7
Fixes: QTBUG-115506
Change-Id: I7c84076be54da91cf0f707c1613afc382acdcb83
Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
Reviewed-by: Piotr WierciĆski <piotr.wiercinski@qt.io>
Diffstat (limited to 'src/tools/moc/preprocessor.cpp')
0 files changed, 0 insertions, 0 deletions
