dep-protobuf/rust/release_crates/google_protobuf/build.rs
Jason Lunn 3df019d491 Forward-port Rust crate swap (#29397)
Cherrypick crate fixes from 36.x to main

Closes #29397

COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/29397 from protocolbuffers:forward_port_crate_swap 2b5bb9fe65
PiperOrigin-RevId: 970589358
2026-08-25 09:08:44 -07:00

19 lines
646 B
Rust

// Protocol Buffers - Google's data interchange format
// Copyright 2024 Google LLC. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file or at
// https://developers.google.com/open-source/licenses/bsd
fn main() {
cc::Build::new()
.flag("-std=c99")
.flag_if_supported("-flto=thin")
.warnings(false)
.include("libupb")
.include("libupb/third_party/utf8_range")
.file("libupb/upb/upb.c")
.file("libupb/third_party/utf8_range/utf8_range.c")
.define("UPB_BUILD_API", Some("1"))
.compile("libupb");
}