Skip to content

Commit e6f80f3

Browse files
committed
Support negative lookahead for tokenizer in ios llama app
1 parent 0d35df5 commit e6f80f3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

examples/demo-apps/apple_ios/LLaMA/LLaMA.xcodeproj/project.pbxproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -758,6 +758,7 @@
758758
"DEBUG=1",
759759
"ET_USE_TIKTOKEN=1",
760760
);
761+
GCC_PREPROCESSOR_DEFINITIONS = "SUPPORT_REGEX_LOOKAHEAD=ON";
761762
GENERATE_INFOPLIST_FILE = YES;
762763
INFOPLIST_KEY_NSHumanReadableCopyright = "";
763764
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
@@ -794,6 +795,7 @@
794795
ENABLE_MODULE_VERIFIER = YES;
795796
GCC_C_LANGUAGE_STANDARD = gnu17;
796797
GCC_PREPROCESSOR_DEFINITIONS = "ET_USE_TIKTOKEN=1";
798+
GCC_PREPROCESSOR_DEFINITIONS = "SUPPORT_REGEX_LOOKAHEAD=ON";
797799
GENERATE_INFOPLIST_FILE = YES;
798800
INFOPLIST_KEY_NSHumanReadableCopyright = "";
799801
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";

0 commit comments

Comments
 (0)