Fix macOS cross build.

This commit is contained in:
Martín Lucas Golini
2025-11-02 18:10:08 -03:00
parent 491b15d6ca
commit 9f55bee3e5
2 changed files with 3 additions and 2 deletions

View File

@@ -22,7 +22,7 @@ done
RESOURCES_PATH="ecode.app/Contents/Resources"
premake5 --file=../../../premake5.lua --use-frameworks gmake || exit
premake5 --file=../../../premake5.lua --disable-static-build --with-text-shaper --use-frameworks gmake || exit
make -C ../../../make/macosx/ -j$(sysctl -n hw.ncpu) -e verbose=true -e config=release_x86_64 ecode || exit
rm -rf ./ecode.app

View File

@@ -84,7 +84,6 @@ shapeAndRun( const String& string, FontTrueType* font, Uint32 characterSize, Uin
hb_buffer_destroy( hbBuffer );
return completeRun;
}
#endif
// New helper function to identify scripts where our custom kerning is safe to apply.
static inline bool isSimpleScript( hb_script_t script ) {
@@ -93,6 +92,8 @@ static inline bool isSimpleScript( hb_script_t script ) {
script == HB_SCRIPT_INVALID;
}
#endif
static inline bool canSkipShaping( Uint32 textDrawHints ) {
return Text::TextShaperOptimizations && ( textDrawHints & TextHints::AllAscii ) != 0;
}