Skip to content

Commit 78cbeee

Browse files
committed
Fixes for cfg flags.
1 parent 2d88789 commit 78cbeee

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ exclude = [ ".github", "book", "tools" ]
2424
# where we are depending on such features.
2525
resolver = "2"
2626

27+
[features]
28+
arbitrary_self_types = []
29+
2730
[dependencies]
2831
autocxx-macro = { path="macro", version="0.26.0" }
2932
cxx = "1.0.78" # ... also needed because expansion of type_id refers to ::cxx

build.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// It would be nice to use the rustversion crate here instead,
1010
// but that doesn't work with inner attributes.
1111
fn main() {
12+
println!("cargo::rustc-check-cfg=cfg(nightly)");
1213
if let Some(ver) = rustc_version() {
1314
if ver.contains("nightly") {
1415
println!("cargo:rustc-cfg=nightly")

integration-tests/build.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// Copyright 2024 Google LLC
2+
//
3+
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
4+
// https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
5+
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
6+
// option. This file may not be copied, modified, or distributed
7+
// except according to those terms.
8+
9+
fn main() {
10+
println!("cargo::rustc-check-cfg=cfg(skip_windows_gnu_failing_tests)");
11+
println!("cargo::rustc-check-cfg=cfg(skip_windows_msvc_failing_tests)");
12+
}

0 commit comments

Comments
 (0)