diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2023-07-29 08:06:47 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-29 14:06:47 +0200 |
commit | cfdef0c38038e42a4ac40f6e962c5e40a0c5cbe6 (patch) | |
tree | 2edf9252385906bc8d32e5fe07ab1eaab63c8518 /cli/args/flags.rs | |
parent | 0ec4feaee7a2dd442fc8955036999b550c9959ac (diff) |
chore: remove println in DenoCompileBinaryWriter (#19976)
Diffstat (limited to 'cli/args/flags.rs')
-rw-r--r-- | cli/args/flags.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/cli/args/flags.rs b/cli/args/flags.rs index c80b2cdbc..5c87c5fbb 100644 --- a/cli/args/flags.rs +++ b/cli/args/flags.rs @@ -68,6 +68,15 @@ pub struct CompileFlags { pub include: Vec<String>, } +impl CompileFlags { + pub fn resolve_target(&self) -> String { + self + .target + .clone() + .unwrap_or_else(|| env!("TARGET").to_string()) + } +} + #[derive(Clone, Debug, Eq, PartialEq)] pub struct CompletionsFlags { pub buf: Box<[u8]>, |