mirror of
https://github.com/openai/codex.git
synced 2026-04-24 14:45:27 +00:00
Add CODEX_SKIP_VENDORED_BWRAP (#16763)
For building on Linux without bubblewrap.
This commit is contained in:
committed by
GitHub
parent
9e19004bc2
commit
cca36c5681
@@ -9,6 +9,7 @@ fn main() {
|
||||
println!("cargo:rerun-if-env-changed=PKG_CONFIG_ALLOW_CROSS");
|
||||
println!("cargo:rerun-if-env-changed=PKG_CONFIG_PATH");
|
||||
println!("cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR");
|
||||
println!("cargo:rerun-if-env-changed=CODEX_SKIP_VENDORED_BWRAP");
|
||||
|
||||
// Rebuild if the vendored bwrap sources change.
|
||||
let manifest_dir = PathBuf::from(env::var("CARGO_MANIFEST_DIR").unwrap_or_default());
|
||||
@@ -31,7 +32,7 @@ fn main() {
|
||||
);
|
||||
|
||||
let target_os = env::var("CARGO_CFG_TARGET_OS").unwrap_or_default();
|
||||
if target_os != "linux" {
|
||||
if target_os != "linux" || env::var_os("CODEX_SKIP_VENDORED_BWRAP").is_some() {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user