diff --git a/src/3rdparty/harfbuzz-ng/CMakeLists.txt b/src/3rdparty/harfbuzz-ng/CMakeLists.txt index 5ac9b33b62..966cc09d36 100644 --- a/src/3rdparty/harfbuzz-ng/CMakeLists.txt +++ b/src/3rdparty/harfbuzz-ng/CMakeLists.txt @@ -65,6 +65,12 @@ qt_internal_add_3rdparty_library(BundledHarfbuzz PUBLIC_INCLUDE_DIRECTORIES $ ) + +# 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)