Skip to content

Commit 186af62

Browse files
Try using g++ rather clang++ for linux build (#56)
* Try using g++ rather clang++ for linux build * Update V8 static library for macos-latest (#55) Co-authored-by: rogchap <[email protected]> * Update V8 static library for ubuntu-latest (#57) Co-authored-by: rogchap <[email protected]> * avoid clang warnings for macos build * Update V8 static library for macos-latest (#58) Co-authored-by: rogchap <[email protected]> * Update the changelog * remove repository dispatch trigger for v8 build Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: rogchap <[email protected]>
1 parent f0a718c commit 186af62

File tree

4 files changed

+14
-7
lines changed

4 files changed

+14
-7
lines changed

.github/workflows/v8build.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: V8 Build
22

3-
on: [workflow_dispatch,repository_dispatch]
3+
on: workflow_dispatch
44

55
jobs:
66
build:
@@ -15,7 +15,11 @@ jobs:
1515
with:
1616
submodules: true
1717
fetch-depth: 1
18-
- name: Build V8
18+
- name: Build V8 linux
19+
if: matrix.platform == 'ubuntu-latest'
20+
run: cd deps && ./build.py --no-clang
21+
- name: Build V8 macOS
22+
if: matrix.platform == 'macos-latest'
1923
run: cd deps && ./build.py
2024
- name: Create PR
2125
uses: peter-evans/create-pull-request@v3

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1010
- Value methods for checking value kind (is string, number, array etc)
1111
- C formatting via `clang-format` to aid future development
1212

13+
### Changed
14+
- Use g++ (default for cgo) for linux builds of the static v8 lib
15+
1316
## [v0.3.0]
1417

1518
### Added

deps/build.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77

88
parser = argparse.ArgumentParser()
99
parser.add_argument('--debug', dest='debug', action='store_true')
10-
parser.set_defaults(debug=False)
10+
parser.add_argument('--no-clang', dest='clang', action='store_false')
11+
parser.set_defaults(debug=False, clang=True)
1112
args = parser.parse_args()
1213

1314
deps_path = os.path.dirname(os.path.realpath(__file__))
@@ -43,8 +44,8 @@
4344

4445
gn_args = """
4546
is_debug=%s
47+
is_clang=%s
4648
clang_use_chrome_plugins=false
47-
linux_use_bundled_binutils=false
4849
use_custom_libcxx=false
4950
use_sysroot=false
5051
symbol_level=0
@@ -57,9 +58,7 @@
5758
v8_enable_gdbjit=false
5859
v8_enable_i18n_support=false
5960
v8_enable_test_features=false
60-
v8_extra_library_files=[]
6161
v8_untrusted_code_mitigations=false
62-
v8_use_snapshot=true
6362
"""
6463

6564
def v8deps():
@@ -85,7 +84,8 @@ def main():
8584
env = os.environ.copy()
8685

8786
is_debug = 'true' if args.debug else 'false'
88-
gnargs = gn_args % is_debug
87+
is_clang = 'true' if args.clang else 'false'
88+
gnargs = gn_args % (is_debug, is_clang)
8989
gen_args = gnargs.replace('\n', ' ')
9090

9191
subprocess.check_call([gn_path, "gen", build_path, "--args=" + gen_args],

deps/linux-x86_64/libv8.a

6.15 MB
Binary file not shown.

0 commit comments

Comments
 (0)