diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2017-08-11 04:34:21 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2017-11-30 04:10:18 +0800 |
commit | 123d85a19e7f20f06d07fd9a0e4201a3d38ce252 (patch) | |
tree | f0ffc539cd5a22a55ca61c812bccfdf91384a22a | |
parent | 73d25c883fddaa961a8276f1e892f935c3f6b2db (diff) | |
download | dexon-solidity-123d85a19e7f20f06d07fd9a0e4201a3d38ce252.tar.gz dexon-solidity-123d85a19e7f20f06d07fd9a0e4201a3d38ce252.tar.zst dexon-solidity-123d85a19e7f20f06d07fd9a0e4201a3d38ce252.zip |
Request all outputs in JSONCompiler
-rw-r--r-- | solc/jsonCompiler.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/solc/jsonCompiler.cpp b/solc/jsonCompiler.cpp index 7e797a62..23feaa2a 100644 --- a/solc/jsonCompiler.cpp +++ b/solc/jsonCompiler.cpp @@ -128,6 +128,11 @@ string compile(StringMap const& _sources, bool _optimize, CStyleReadFileCallback input["settings"]["optimizer"]["enabled"] = _optimize; input["settings"]["optimizer"]["runs"] = 200; + // Enable all SourceUnit-level outputs. + input["settings"]["outputSelection"]["*"][""][0] = "*"; + // Enable all Contract-level outputs. + input["settings"]["outputSelection"]["*"]["*"][0] = "*"; + StandardCompiler compiler(wrapReadCallback(_readCallback)); Json::Value ret = compiler.compile(input); |