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
Andy Finch
ffdf69bd00
Add AArch64/ARM64 builds and tests ( #266 )
2020-02-12 18:43:38 -08:00
Ryan Dahl
71c650bc05
Put gn_ninja_binaries in target/debug instead of out_dir ( #261 )
2020-01-28 18:27:11 -05:00
Ry Dahl
9d24f58765
Move clang download to target/debug/clang ( #210 )
...
To prevent rebuilds due to the compiler being in random directories.
2020-01-16 14:20:57 -05:00
Bert Belder
78f3577c06
Don't build V8 if the rust language server is running ( #193 )
2020-01-05 19:52:23 +01:00
Bert Belder
2f46023e08
Upgrade crates cargo_gn and trybuild ( #185 )
2020-01-05 00:08:47 +01:00
Ryan Dahl
eee7f98108
Fix up build
...
Remove regex build dependency; otherwise dependent crates get
error: crate `regex_syntax` required to be available in rlib format,
but was not found in this form
And don't default to system clang on OSX
2019-12-27 12:04:28 -05:00
Christian Moritz
0303984286
allow building with compatible system clang ( #109 )
2019-12-26 09:43:39 -05:00
Bert Belder
6d30c77116
Set up test harness for verifying safety constraints ( #117 )
2019-12-22 20:02:25 +01:00
Ryan Dahl
df691b6f38
v0.0.12
2019-12-18 10:18:56 -05:00
Andy Hayden
7fd3bc56d6
Exit with status 1 if build.rs fails ( #62 )
2019-12-14 09:17:45 +08:00
Ry Dahl
0219eece69
Prevent gn/ninja downloading if already downloaded ( #41 )
2019-12-05 17:03:33 -05:00
Ryan Dahl
6cf92a7fa3
Upgrade V8 to 8.0.427
2019-12-04 11:29:33 -05:00