Fix harfbuzz-ng compilation for Integrity

Add --restrict definition, because GHS compiler doesn't support it by default

Pick-to: 6.2
Change-Id: I6766f2fe309802ad9de333edd6ed43f7a187616f
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
bb10
Tatiana Borisova 2021-06-18 14:58:05 +03:00
parent 0c09f4489d
commit 22a058bcf0
1 changed files with 6 additions and 0 deletions

View File

@ -65,6 +65,12 @@ qt_internal_add_3rdparty_library(BundledHarfbuzz
PUBLIC_INCLUDE_DIRECTORIES
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include/harfbuzz>
)
# GHS compiler doesn't support the __restrict keyword
if(INTEGRITY)
target_compile_definitions(BundledHarfbuzz PRIVATE __restrict=)
endif()
qt_disable_warnings(BundledHarfbuzz)
qt_set_symbol_visibility_hidden(BundledHarfbuzz)