aboutsummaryrefslogtreecommitdiff
path: root/src-tauri/src/lib.rs
diff options
context:
space:
mode:
authorGeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com>2023-02-25 20:55:54 +0100
committerGitHub <noreply@github.com>2023-02-25 19:55:54 +0000
commit0928087751569148e7bbc1b351ed0eab0430dac5 (patch)
tree21f413ce5b5d40e54713c9aea47841b293014423 /src-tauri/src/lib.rs
parent17c4f45a69a418bfb02134fb568caf7c9f4f20e3 (diff)
downloadFlightCore-0928087751569148e7bbc1b351ed0eab0430dac5.tar.gz
FlightCore-0928087751569148e7bbc1b351ed0eab0430dac5.zip
refactor: Properly set cfg macro for OS conditional compilation (#186)
* refactor: Properly set cfg macro for OS conditional compilation * docs: Add comment about MacOS
Diffstat (limited to 'src-tauri/src/lib.rs')
-rw-r--r--src-tauri/src/lib.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs
index 5688512c..27019361 100644
--- a/src-tauri/src/lib.rs
+++ b/src-tauri/src/lib.rs
@@ -9,6 +9,7 @@ mod platform_specific;
#[cfg(target_os = "windows")]
use platform_specific::windows;
+#[cfg(target_os = "linux")]
use platform_specific::linux;
use serde::{Deserialize, Serialize};
@@ -67,7 +68,7 @@ pub fn check_mod_version_number(path_to_mod_folder: String) -> Result<String, an
// I intend to add more linux related stuff to check here, so making a func
// for now tho it only checks `ldd --version`
// - salmon
-
+#[cfg(target_os = "linux")]
pub fn linux_checks_librs() -> Result<(), String> {
// Perform various checks in terms of Linux compatibility
// Return early with error message if a check fails