Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions tools/building.py
Original file line number Diff line number Diff line change
Expand Up @@ -523,6 +523,8 @@ def get_closure_compiler_and_env(user_args):
# This can happen, for example, on arm64 macOS machines that do not have Rosetta installed.
logger.warning('falling back to java version of closure compiler')
user_args.append('--platform=java')
if 'JAVA_TOOL_OPTIONS' not in env:
env['JAVA_TOOL_OPTIONS'] = '--sun-misc-unsafe-memory-access=allow'
check_closure_compiler(closure_cmd, user_args, env, allowed_to_fail=False)

return closure_cmd, env
Expand Down
Loading