mirror of
https://github.com/denoland/deno.git
synced 2025-12-23 08:48:24 +00:00
fix(compile): sentinal conflict with strtab on intel mac (#31587)
This commit is contained in:
parent
d17ae8ca9b
commit
a97997b8e5
6 changed files with 27 additions and 12 deletions
|
|
@ -23,6 +23,11 @@ const IS_RC: bool = option_env!("DENO_RC").is_some();
|
|||
|
||||
pub static DENO_VERSION_INFO: std::sync::LazyLock<DenoVersionInfo> =
|
||||
std::sync::LazyLock::new(|| {
|
||||
#[cfg(not(all(
|
||||
debug_assertions,
|
||||
target_os = "macos",
|
||||
target_arch = "x86_64"
|
||||
)))]
|
||||
let release_channel = libsui::find_section("denover")
|
||||
.ok()
|
||||
.flatten()
|
||||
|
|
@ -38,6 +43,15 @@ pub static DENO_VERSION_INFO: std::sync::LazyLock<DenoVersionInfo> =
|
|||
}
|
||||
});
|
||||
|
||||
#[cfg(all(debug_assertions, target_os = "macos", target_arch = "x86_64"))]
|
||||
let release_channel = if IS_CANARY {
|
||||
ReleaseChannel::Canary
|
||||
} else if IS_RC {
|
||||
ReleaseChannel::Rc
|
||||
} else {
|
||||
ReleaseChannel::Stable
|
||||
};
|
||||
|
||||
DenoVersionInfo {
|
||||
deno: if release_channel == ReleaseChannel::Canary {
|
||||
concat!(env!("DENO_VERSION"), "+", env!("GIT_COMMIT_HASH_SHORT"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue