mirror of
https://github.com/pezkuwichain/revive-differential-tests.git
synced 2026-06-14 16:41:04 +00:00
Set the base path if specified
This commit is contained in:
@@ -30,6 +30,9 @@ impl SolidityCompiler for Resolc {
|
|||||||
.stderr(Stdio::piped())
|
.stderr(Stdio::piped())
|
||||||
.arg("--standard-json");
|
.arg("--standard-json");
|
||||||
|
|
||||||
|
if let Some(ref base_path) = input.base_path {
|
||||||
|
command.arg("--base-path").arg(base_path);
|
||||||
|
}
|
||||||
if !input.allow_paths.is_empty() {
|
if !input.allow_paths.is_empty() {
|
||||||
command.arg("--allow-paths").arg(
|
command.arg("--allow-paths").arg(
|
||||||
input
|
input
|
||||||
|
|||||||
@@ -29,6 +29,9 @@ impl SolidityCompiler for Solc {
|
|||||||
.stderr(Stdio::piped())
|
.stderr(Stdio::piped())
|
||||||
.arg("--standard-json");
|
.arg("--standard-json");
|
||||||
|
|
||||||
|
if let Some(ref base_path) = input.base_path {
|
||||||
|
command.arg("--base-path").arg(base_path);
|
||||||
|
}
|
||||||
if !input.allow_paths.is_empty() {
|
if !input.allow_paths.is_empty() {
|
||||||
command.arg("--allow-paths").arg(
|
command.arg("--allow-paths").arg(
|
||||||
input
|
input
|
||||||
|
|||||||
@@ -70,7 +70,6 @@ where
|
|||||||
};
|
};
|
||||||
|
|
||||||
let compiler = Compiler::<T::Compiler>::new()
|
let compiler = Compiler::<T::Compiler>::new()
|
||||||
.base_path(metadata.directory()?)
|
|
||||||
.allow_path(metadata.directory()?)
|
.allow_path(metadata.directory()?)
|
||||||
.solc_optimizer(mode.solc_optimize());
|
.solc_optimizer(mode.solc_optimize());
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user