Jonathan Birk
9a0a6bc570
Meaningful error message if gn
can't be run ( #1115 )
2022-11-27 03:03:24 +01:00
Bartek Iwańczuk
65ff64e5cd
chore: update Rust to 1.65.0 ( #1116 )
2022-11-25 14:32:52 +01:00
Ryan Dahl
0d1ada4387
chore: small clean ups ( #1073 )
2022-09-19 09:33:58 +02:00
Ben Noordhuis
5cc0a8556a
Build with v8_typed_array_max_size_in_heap=0 ( #1070 )
...
Ensure allocation of typed arrays and arraybuffers always goes through
the embedder's ArrayBufferAllocator, otherwise small buffers get moved
around by the garbage collector but embedders normally want them to have
fixed addresses.
2022-09-19 00:35:30 +02:00
Will Glozer
746f7a3a56
Fix creation of invalid librusty_v8.a ( #1059 )
2022-08-26 10:16:20 -04:00
Ryan Dahl
3fbf87aa4b
refactor: remove unnecessary complexity from build.rs ( #963 )
...
- remove friendly build script output in favor of brevity
- Revert "Add support for generating a `clangd` compilation database (#823 )"
- simplify subprocess invocations
2022-07-26 13:21:23 -04:00
denobot
21a8d4a580
Rolling to V8 10.5.218.1 ( #1036 )
...
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2022-07-25 19:22:32 +02:00
Ryan Dahl
53299dceb4
Add back gn args --list on build ( #1013 )
2022-07-08 10:55:58 -04:00
Bert Belder
9b1bb41d86
chore: reduce size of distributed static library ( #918 )
...
Closes : #974
2022-05-24 10:28:23 +02:00
Bert Belder
a9567bc31a
chore: clean up and remove redundant gn args ( #981 )
2022-05-24 10:28:15 +02:00
Bert Belder
e7105d4eff
chore: actually run unit tests in build.rs ( #980 )
2022-05-24 00:27:13 +02:00
Bert Belder
2f189e1668
Upgrade V8 to 10.3.174.3 ( #969 )
2022-05-18 10:53:34 +02:00
Ryan Dahl
f36d8dae7f
print gn args --list ( #962 )
2022-05-09 16:44:34 -04:00
Ryan Dahl
ebb10e5368
refactor: small build.rs clean ups ( #961 )
2022-05-07 13:47:17 -04:00
Aaron O'Mullan
64ce32392a
fix(build): avoid redownloads ( #956 )
...
Fixes #955
2022-05-02 09:14:24 +02:00
Arthur Silva
43893f726d
Add crate feature that controls whether custom libcxx is used ( #924 )
...
The `use_custom_libcxx` feature is enabled by default. When this feature
is disabled, the crate will link with the system libcxx instead.
2022-03-16 16:20:09 +01:00
Divy Srivastava
a29740df6b
Add aarch64-linux-android support ( #860 )
2022-01-04 21:32:48 +01:00
Andreu Botella
8bea9b1f40
Add support for generating a clangd
compilation database ( #823 )
...
This will help with IDE integration of the C++ part of the code.
Ref: https://chromium.googlesource.com/chromium/src/+/refs/heads/main/docs/clangd.md
2021-12-11 11:16:43 +01:00
Rafael Ávila de Espíndola
f399732ba0
Ignore environment variables set by cargo ( #825 )
...
This avoids constant rebuilds when alternating between running
$ cargo build
$ cargo run <something that runs cargo build>
Since the second command will see these environment variables set
during the logic deciding if build.rs should be rerun or not.
Since these are cargo specific variables, hopefully cargo already does
the right thing without our help.
2021-11-04 14:16:05 -04:00
Rafael Ávila de Espíndola
26d60b7dfe
Add missing cargo:rerun-if-env-changed ( #807 )
...
In addition to the problem described in issue #378 , we noticed link
error when updating rusty_v8 without doing a clean build. As far as I
can tell, there were two potential bugs:
* Cargo not being informed that it should run build.rs when
CARGO_PKG_VERSION changed.
* Even if build.rs was rerun, it would not download a new package. It
seems that build.rs should either verify that the right package was
downloaded or should just trust cargo to not rerun it when not
needed.
Fixes : #378
2021-10-25 19:40:09 -04:00
Rafael Ávila de Espíndola
05b41b8b84
Add support for a RUSTY_V8_ARCHIVE environment variable ( #812 )
2021-10-25 16:35:19 -04:00
Aaron O'Mullan
0bd141c78d
Default to linking against release v8 builds ( #783 )
...
Unless $V8_FORCE_DEBUG=true to speedup CI for main deno repo
2021-09-22 12:02:55 +02:00
devsnek
ab04be75f3
fix building in the presence of depot_tools ( #757 )
2021-08-21 17:21:08 +02:00
PerfectLaugh
580a89cf10
Fix x86 build
2021-08-12 06:00:20 +02:00
Yusuke Tanaka
245c7b2b8e
chore: upgrade Rust to 1.54.0, apply clippy fixes ( #744 )
2021-07-29 19:40:16 -07:00
Ben Noordhuis
3a5ce45245
Remove dead platform code ( #653 )
...
The Task struct and Platform::pump_message_loop() method were
non-functional, remove them.
2021-03-30 14:33:39 +02:00
Yusuke Tanaka
3c7ff01ad4
Upgrade Rust to 1.51.0 ( #652 )
2021-03-27 20:16:35 +01:00
Aaron O'Mullan
e4308bb0bd
build: patch GN's host_cpu detection on Apple Silicon ( #640 )
2021-03-06 20:17:33 -05:00
Ryan Dahl
3d26ffbf17
Merge cargo_gn into this crate ( #604 )
2021-02-08 14:57:55 -05:00
Bert Belder
b19d0dc349
Sync third-party dependencies and build tools with Chromium ( #568 )
2021-01-01 18:02:58 -08:00
mash-graz
6c54f184cb
use lockfile to prevent linking of partially downloaded lib ( #543 )
2020-12-27 17:37:14 +01:00
Avindra Goolcharan
810c108170
Improve ninja/gn detection ( #558 )
...
This should allow people to build without explicitly setting GN and
NINJA env vars.
If the tool(s) are detected, the build will continue without trying to
download the binaries.
2020-12-25 10:20:53 +01:00
Ben Noordhuis
5b0764a811
Refactor build script. ( #546 )
...
Apply some DRY to build.rs to pave the way for upcoming changes.
2020-11-30 16:35:56 +01:00
liushuyu
f2f5d86af8
feat(build): allow native compilation on non-amd64 ( #514 )
2020-10-31 13:32:33 +01:00
Ben Noordhuis
1149ee3ada
Make RUSTY_V8_MIRROR understand file paths ( #488 )
...
Fixes #470
2020-10-07 08:39:02 +02:00
Ryan Dahl
18a3eab7c6
Fix docs.rs detection ( #485 )
...
Previously docs.rs supplied RUSTDOCFLAGS env var to builds, which we
used to skip building/downloading rusty_v8. docs.rs does not allow
network access.
Reference for DOCS_RS: https://docs.rs/about/builds
Failed build: https://docs.rs/crate/deno_core/0.61.0/builds/299870
2020-10-06 09:34:33 -04:00
Bert Belder
c564ca286b
Upgrade gn to 6f13aaac & make BUILD.gn compatible with it ( #462 )
2020-09-08 03:02:56 +02:00
devsnek
cf59bf1e4d
Add support for ccache ( #455 )
2020-09-03 19:22:07 +02:00
Bert Belder
e88ea4ad01
Downgrade to V8 8.6.334 again ( #447 )
...
After the upgrade some Deno tests started crashing somewhere deep inside
V8, and the cause of these crashes is unclear.
This reverts the following commits:
* 12334ffe
Upgrade gn to 6f13aaac; make BUILD.gn compatible with it (#443 )
* f53f10d4
Upgrade V8 to 8.7.25 (#443 )
2020-08-28 17:52:05 +02:00
picoHz
fa8f636397
Specify custom URL for binary downloads with 'RUSTY_V8_MIRROR' env var ( #446 )
2020-08-28 12:03:34 +02:00
Bert Belder
12334ffef1
Upgrade gn to 6f13aaac; make BUILD.gn compatible with it ( #443 )
2020-08-27 23:38:54 +02:00
Bert Belder
24fa76aaaa
Upgrade V8 to 8.6.337 ( #430 )
2020-08-06 03:48:17 +02:00
Bert Belder
3b6ed67f5e
Rewrite the scope system from scratch ( #406 )
2020-06-26 01:42:00 +02:00
Bert Belder
54f6bfe8c1
Reflow comments and strings that exceed the 80-char column limit ( #407 )
2020-06-17 06:15:08 +02:00
George Hahn
d87341a7ce
Fallback to curl if download_file.py fails ( #373 )
2020-05-31 14:36:56 -04:00
utam0k
25276c8249
Improve error message when build.rs fails because OUT_DIR is not set ( #387 )
2020-05-31 19:25:25 +02:00
Bert Belder
9ad0d35718
Upgrade V8 to 8.4.300 ( #368 )
2020-05-06 03:48:19 +02:00
Bert Belder
3d0a90c1c8
Clippy ( #354 )
2020-04-16 15:35:27 +02:00
Bert Belder
4a870fcccd
Re-enable AArch64/ARM64 builds on Github Actions ( #343 )
2020-04-05 06:44:11 +02:00
Bert Belder
fb08c1bf22
Use 'use_sysroot=false' by default, override only for ARM64 builds ( #342 )
2020-04-05 04:57:20 +02:00