Skip to content

Commit eb89bd3

Browse files
authored
Build PCRE2 with JIT mode enabled on mac (#232)
1 parent 0607a70 commit eb89bd3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ omnibus/.bundle
33
omnibus/bin
44
omnibus/crystal-darwin-*
55
omnibus/shards-darwin-*
6+
omnibus/vendor
67

78
docs/build/
89

omnibus/config/software/pcre2.rb

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,16 @@
2525

2626
build do
2727
env = with_standard_compiler_flags(with_embedded_path)
28-
env["CFLAGS"] << " -fPIC -arch arm64 -arch x86_64"
28+
env["CFLAGS"] << " -DMAC_OS_X_VERSION_MIN_REQUIRED=110000 -fPIC -arch arm64 -arch x86_64"
2929
env["CPPFLAGS"] = env["CPPFLAGS"].gsub("-arch arm64 -arch x86_64", "")
3030

3131
command "./configure" \
3232
" --prefix=#{install_dir}/embedded" \
3333
" --disable-cpp" \
3434
" --disable-shared" \
3535
" --enable-unicode-properties" \
36-
" --enable-utf", env: env
37-
# TODO: Enable JIT (Error: "Must target Big Sur or newer")
38-
# " --enable-jit" \
36+
" --enable-utf" \
37+
" --enable-jit", env: env
3938

4039
make "-j #{workers}", env: env
4140
make "install", env: env

0 commit comments

Comments
 (0)