Skip to content

Commit 8f9ff28

Browse files
committed
smbios: is_framework if any of our platforms match
Signed-off-by: Daniel Schaefer <[email protected]>
1 parent cc8d1ef commit 8f9ff28

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

framework_lib/src/smbios.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,11 @@ pub fn is_framework() -> bool {
5050
return true;
5151
}
5252

53+
// If we match any of our platforms, it's our platform
54+
if get_platform().is_some() {
55+
return true;
56+
}
57+
5358
// Don't need to parse SMBIOS on FreeBSD, can just read kenv
5459
#[cfg(target_os = "freebsd")]
5560
if let Ok(maker) = kenv_get("smbios.system.maker") {

0 commit comments

Comments
 (0)