mirror of
https://git.freebsd.org/ports.git
synced 2026-06-02 11:08:52 +00:00
textproc/bookokrat: fix build on powerpc*
Cargo doesn't export CARGO_CFG_TARGET_FEATURE on powerpc*.
This commit is contained in:
@@ -8,3 +8,13 @@
|
||||
.allowlist_type("FILE")
|
||||
.opaque_type("FILE")
|
||||
.allowlist_item("max_align_t")
|
||||
@@ -336,7 +337,8 @@ impl Target {
|
||||
os: env::var("CARGO_CFG_TARGET_OS")?,
|
||||
env: env::var("CARGO_CFG_TARGET_ENV")?,
|
||||
|
||||
- features: env::var("CARGO_CFG_TARGET_FEATURE")?
|
||||
+ features: env::var("CARGO_CFG_TARGET_FEATURE")
|
||||
+ .unwrap_or_default()
|
||||
.split(',')
|
||||
.map(str::to_owned)
|
||||
.collect(),
|
||||
|
||||
Reference in New Issue
Block a user