974accc2c7
### What? closes WEB-1301. To collect some information inside of rust binary, embed it as build-time constant. It supersedes existing target triple embedding as well.
10 lines
368 B
Rust
10 lines
368 B
Rust
use turbopack_binding::turbo::tasks_build::generate_register;
|
|
|
|
fn main() {
|
|
// Generates, stores build-time information as static values.
|
|
// There are some places relying on correct values for this (i.e telemetry),
|
|
// So failing build if this fails.
|
|
shadow_rs::new().expect("Should able to generate build time information");
|
|
|
|
generate_register();
|
|
}
|