summaryrefslogtreecommitdiff
path: root/exes/gateway
diff options
context:
space:
mode:
authorMatthieuCoder <matthieu@matthieu-dev.xyz>2023-01-15 19:03:22 +0400
committerMatthieuCoder <matthieu@matthieu-dev.xyz>2023-01-15 19:03:22 +0400
commite9be1f8b274c90b70551185bd41313d72f2d2294 (patch)
treeee389e2d26b730999a924870744370616bdf56f4 /exes/gateway
parent688a21492a06cbaf11584a1b47cd81013e8742b5 (diff)
fix msys2 build
Diffstat (limited to 'exes/gateway')
-rw-r--r--exes/gateway/Cargo.toml2
-rw-r--r--exes/gateway/src/main.rs4
2 files changed, 3 insertions, 3 deletions
diff --git a/exes/gateway/Cargo.toml b/exes/gateway/Cargo.toml
index 98a1ae8..e7a0813 100644
--- a/exes/gateway/Cargo.toml
+++ b/exes/gateway/Cargo.toml
@@ -29,5 +29,5 @@ tracing-opentelemetry = "0.18.0"
opentelemetry = "0.18.0"
opentelemetry-http = "0.7.0"
-[target.'cfg(not(target_env = "msvc"))'.dependencies]
+[target.'cfg(not(target_os = "windows"))'.dependencies]
tikv-jemallocator = "0.5" \ No newline at end of file
diff --git a/exes/gateway/src/main.rs b/exes/gateway/src/main.rs
index 6cac7e1..900171c 100644
--- a/exes/gateway/src/main.rs
+++ b/exes/gateway/src/main.rs
@@ -1,10 +1,10 @@
use gateway::GatewayServer;
use leash::ignite;
-#[cfg(not(target_env = "msvc"))]
+#[cfg(not(target_os = "windows"))]
use tikv_jemallocator::Jemalloc;
-#[cfg(not(target_env = "msvc"))]
+#[cfg(not(target_os = "windows"))]
#[global_allocator]
static GLOBAL: Jemalloc = Jemalloc;