electron/patches/v8
Samuel Attard f146a164af
build: add apple silicon support (#24545)
* chore: add patches to prevent installation of non-arm pip packages

* chore: add patches for apple-silicon

* build: add apple silicon build

* ci: add testing of new arm binary

* chore: remove / update for upstreamed patches

* Skip content tracing on macos on arm

* build: ensure that spec native modules are rebuilt for arm64 on apple-silicon

* chore: fix patches

* chore: fix broken patch

* chore: fix arm64 DCHECK

* build: add MAS arm64 build

* build: disable arm2 tests

* chore: update patches

* build: actually build MAS version of apple silicon app

Co-authored-by: John Kleinschmidt <jkleinsc@github.com>
2020-07-17 09:08:44 -07:00
..
.patches build: add apple silicon support (#24545) 2020-07-17 09:08:44 -07:00
add_realloc.patch chore: bump chromium to ab0f6deadb33bb3a0201cd2d21602 (master) (#24539) 2020-07-14 20:07:42 -07:00
build_gn.patch chore: bump chromium to ab0f6deadb33bb3a0201cd2d21602 (master) (#24539) 2020-07-14 20:07:42 -07:00
chore_add_v8_apple_silicon_patches.patch build: add apple silicon support (#24545) 2020-07-17 09:08:44 -07:00
dcheck.patch chore: bump chromium to ab0f6deadb33bb3a0201cd2d21602 (master) (#24539) 2020-07-14 20:07:42 -07:00
do_not_export_private_v8_symbols_on_windows.patch chore: bump chromium to ab0f6deadb33bb3a0201cd2d21602 (master) (#24539) 2020-07-14 20:07:42 -07:00
export_symbols_needed_for_windows_build.patch chore: bump chromium to d66c2e32380bf5d1eb5e1fe37faef (master) (#23791) 2020-06-01 16:34:34 -04:00
expose_mksnapshot.patch chore: bump chromium to ab0f6deadb33bb3a0201cd2d21602 (master) (#24539) 2020-07-14 20:07:42 -07:00
fix_build_deprecated_attirbute_for_older_msvc_versions.patch chore: bump chromium to a84d34e372b8fb5e9a94b1b4b447e (master) (#23908) 2020-06-22 10:35:10 -07:00
fix_use_proper_page_size_for_mac_arm64.patch build: add apple silicon support (#24545) 2020-07-17 09:08:44 -07:00
README.md chore: remove mips64el patches as they've largely been upstreamed (#18628) 2019-06-05 16:36:17 -07:00
revert_cleanup_switch_offset_of_to_offsetof_where_possible.patch chore: bump chromium to 6d130075d378a64187360ba4e7820 (master) (#24256) 2020-07-13 21:13:34 -04:00
workaround_an_undefined_symbol_error.patch chore: bump chromium to a84d34e372b8fb5e9a94b1b4b447e (master) (#23908) 2020-06-22 10:35:10 -07:00

Exporting node's patches to v8

$ cd third_party/electron_node
$ CURRENT_NODE_VERSION=vX.Y.Z  # e.g. v10.11.0

# Find the last commit with the message "deps: update V8 to <some version>"
# This commit corresponds to node resetting V8 to its pristine upstream
# state at the stated version.
$ LAST_V8_UPDATE="$(git log --grep='^deps: update V8' --format='%H' -1 deps/v8)"

# This creates a patch file containing all changes in deps/v8 from
# $LAST_V8_UPDATE up to the current node version, formatted in a way that
# it will apply cleanly to the V8 repository (i.e. with `deps/v8`
# stripped off the path and excluding the v8/gypfiles directory, which
# isn't present in V8.
$ git format-patch \
    --relative=deps/v8 \
    $LAST_V8_UPDATE..$CURRENT_NODE_VERSION \
    deps/v8 \
    ':(exclude)deps/v8/gypfiles' \
    --stdout

When upgrading to a new version of node, make sure to match node's patches to v8 by removing all the deps_* patches and re-exporting node's v8 patches using the process above.