File tree 1 file changed +9
-2
lines changed
godot-codegen/src/special_cases
1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -88,9 +88,16 @@ pub fn is_godot_type_deleted(godot_ty: &str) -> bool {
88
88
// See e.g. https://github.com/GodotVR/godot-xr-tools/issues/479.
89
89
// OpenXR is also not available on iOS: https://github.com/godotengine/godot/blob/13ba673c42951fd7cfa6fd8a7f25ede7e9ad92bb/modules/openxr/config.py#L2
90
90
// Do not hardcode a list of OpenXR classes, as more may be added in future Godot versions; instead use prefix.
91
- #[ cfg( any( all( before_api = "4.2" , target_os = "macos" ) , target_os = "ios" ) ) ]
92
91
if godot_ty. starts_with ( "OpenXR" ) {
93
- return true ;
92
+ let target_os = std:: env:: var ( "CARGO_CFG_TARGET_OS" ) ;
93
+ match target_os. as_deref ( ) {
94
+ Ok ( "ios" ) => return true ,
95
+ Ok ( "macos" ) => {
96
+ #[ cfg( before_api = "4.2" ) ]
97
+ return true ;
98
+ }
99
+ _ => { }
100
+ }
94
101
}
95
102
96
103
// ThemeDB was previously loaded lazily
You can’t perform that action at this time.
0 commit comments