mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fixes forced optimizer settings in external tests.
This commit is contained in:
parent
a3a60b8eb9
commit
c72686b343
@ -150,11 +150,15 @@ function force_solc_settings
|
|||||||
local evmVersion="$3"
|
local evmVersion="$3"
|
||||||
|
|
||||||
printLog "Forcing solc settings..."
|
printLog "Forcing solc settings..."
|
||||||
|
echo "-------------------------------------"
|
||||||
echo "Config file: $config_file"
|
echo "Config file: $config_file"
|
||||||
echo "Optimizer settings: $settings"
|
echo "Optimizer settings: $settings"
|
||||||
echo "EVM version: $evmVersion"
|
echo "EVM version: $evmVersion"
|
||||||
echo ""
|
echo "-------------------------------------"
|
||||||
|
|
||||||
|
# Forcing the settings should always work by just overwriting the solc object. Forcing them by using a
|
||||||
|
# dedicated settings objects should only be the fallback.
|
||||||
|
echo "module.exports['solc'] = { optimizer: $settings, evmVersion: \"$evmVersion\" };" >> "$config_file"
|
||||||
echo "module.exports['compilers']['solc']['settings'] = { optimizer: $settings, evmVersion: \"$evmVersion\" };" >> "$config_file"
|
echo "module.exports['compilers']['solc']['settings'] = { optimizer: $settings, evmVersion: \"$evmVersion\" };" >> "$config_file"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user