Skip to content

Commit

Permalink
fixes a lot
Browse files Browse the repository at this point in the history
  • Loading branch information
paulocoutinhox committed Aug 17, 2024
1 parent 25dfa57 commit b7eea73
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions modules/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,15 +130,18 @@ def get_build_args(config, target_os, target_cpu, libc=None, enable_v8=False):
elif target_os == "ios":
args.append("ios_enable_code_signing=false")
args.append("use_blink=true")
args.append("pdf_is_complete_lib=true")

if enable_v8 and target_cpu == "arm64":
args.append('arm_control_flow_integrity="none"')
args.append("clang_use_chrome_plugins=false")
elif target_os == "linux":
args.append("clang_use_chrome_plugins=false")
elif target_os == "mac":
elif target_os.startswith("mac"):
args.append('mac_deployment_target="10.13.0"')
args.append("clang_use_chrome_plugins=false")
elif target_os == "wasm":
args.append("pdf_is_complete_lib=true")
elif target_os.startswith("wasm"):
args.append("pdf_is_complete_lib=true")
args.append("is_clang=false")

Expand Down
2 changes: 1 addition & 1 deletion modules/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

# macos
configurations_macos = ["release"]
shared_lib_macos = False
shared_lib_macos = True
targets_macos = [
{"target_os": "macos", "target_cpu": "x64", "pdfium_os": "mac"},
{"target_os": "macos", "target_cpu": "arm64", "pdfium_os": "mac"},
Expand Down

0 comments on commit b7eea73

Please sign in to comment.