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
Ryan Dahl
054f6daae2
fix: double rebuild when running ui tests ( #338 )
2020-04-04 22:11:29 +02:00
Ryan Dahl
c7262e8994
Default to binary build, instead of from source ( #325 )
2020-03-27 16:17:19 -04:00
Ryan Dahl
e13567d89f
Use env var V8_BINARY instead of cargo feature
2020-03-17 20:32:21 -04:00
Ryan Dahl
51d4e6b740
Support binary downloads ( #316 )
...
Co-authored-by: Bert Belder <bertbelder@gmail.com>
2020-03-17 17:59:37 -04:00
Bert Belder
8a3c19ece4
Upgrade V8 to 8.2.308 ( #306 )
2020-03-13 22:05:16 -07:00
Bert Belder
3e63d63223
Download ninja and gn binaries from github ( #307 )
2020-03-13 21:52:35 -07:00
Ryan Dahl
cf86bd77e1
Upgrade to rust 1.42.0 ( #305 )
2020-03-13 17:59:48 -07:00