From a44349dfdfecacdd4ccd343a984b05abb728bf88 Mon Sep 17 00:00:00 2001 From: Luca Casonato Date: Fri, 8 Jan 2021 03:08:51 +0100 Subject: feat: denort binary (#9041) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit adds new binary target called "denort". It is a "lite" version of "deno" binary that can only execute code embedded inside the binary itself. Co-authored-by: Bartek IwaƄczuk --- test_util/src/lib.rs | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'test_util/src') diff --git a/test_util/src/lib.rs b/test_util/src/lib.rs index 262084af7..3d5c60175 100644 --- a/test_util/src/lib.rs +++ b/test_util/src/lib.rs @@ -106,6 +106,15 @@ pub fn deno_exe_path() -> PathBuf { p } +pub fn denort_exe_path() -> PathBuf { + // Something like /Users/rld/src/deno/target/debug/deps/denort + let mut p = target_dir().join("denort"); + if cfg!(windows) { + p.set_extension("exe"); + } + p +} + pub fn prebuilt_tool_path(tool: &str) -> PathBuf { let mut exe = tool.to_string(); exe.push_str(if cfg!(windows) { ".exe" } else { "" }); -- cgit v1.2.3