compileFull(): Use find instead of /*/*, which requires ignoring missing files

This commit is contained in:
Kamil Śliwak 2021-10-06 18:32:06 +02:00
parent 4054e2a28f
commit 476c76b54e
2 changed files with 3 additions and 2 deletions

View File

@ -20,7 +20,7 @@
# ------------------------------------------------------------------------------
YULARGS=(--strict-assembly)
FULLARGS=(--optimize --ignore-missing --combined-json "abi,asm,ast,bin,bin-runtime,devdoc,hashes,metadata,opcodes,srcmap,srcmap-runtime,userdoc")
FULLARGS=(--optimize --combined-json "abi,asm,ast,bin,bin-runtime,devdoc,hashes,metadata,opcodes,srcmap,srcmap-runtime,userdoc")
OLDARGS=(--optimize --combined-json "abi,asm,ast,bin,bin-runtime,devdoc,interface,metadata,opcodes,srcmap,srcmap-runtime,userdoc")
function compileFull()
{

View File

@ -424,7 +424,8 @@ printTask "Compiling various other contracts and libraries..."
do
echo " - $dir"
cd "$dir"
compileFull --expect-warnings ./*.sol ./*/*.sol
# shellcheck disable=SC2046 # These file names are not supposed to contain spaces.
compileFull --expect-warnings $(find . -name '*.sol')
cd ..
done
)