From 684885155ca0a53e97ac174405cc5d3ecff7d8c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?I=C3=B1aki=20Baz=20Castillo?= Date: Fri, 20 Oct 2023 16:32:06 +0200 Subject: [PATCH] Improve inline doc --- worker/build.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/worker/build.rs b/worker/build.rs index 301ab740fb..2caf96525b 100644 --- a/worker/build.rs +++ b/worker/build.rs @@ -19,8 +19,10 @@ fn main() { // Force forward slashes on Windows too so that is plays well with our dumb `Makefile`. let mediasoup_out_dir = format!("{}/out", out_dir.replace('\\', "/")); - // Store original PATH so we make `make clean-all` use it, otherwise - // our modified PATH may include rm.exe in Windows and delete itself. + // Store original PATH so we make `make clean-all` use it. This is because, in Windows, + // we may need to fetch `make` and we store it in out/msys and then we add out/msys/bin + // to the PATH, and that folder may contain rm.exe, so `make clean-all` would use + // that rm.exe and delete itself and make the task fail. let original_path = env::var("PATH").unwrap(); // Add C++ std lib