scx-upstream/rust/scx_utils/build.rs
Tejun Heo f7c193e528 scx_utils, scx_rusty: Minor updates to version handling
- Update scx_utils/build.rs so that 12 char SHA1 is generated instead of
  full one.

- Add --version to scx_rusty. Use custom one as we don't want to use the
  default cargo version one.
2024-08-20 21:03:05 -10:00

18 lines
411 B
Rust

// Copyright (c) Meta Platforms, Inc. and affiliates.
//
// This software may be used and distributed according to the terms of the
// GNU General Public License version 2.
use vergen::EmitBuilder;
include!("src/builder.rs");
fn main() {
Builder::new().build();
EmitBuilder::builder()
.git_sha(true)
.git_dirty(true)
.cargo_target_triple()
.emit()
.unwrap();
}