mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Mention that solcjs is not compatible with solc in the using-the-compiler section
This commit is contained in:
parent
1f5eb4ba59
commit
241134a881
@ -29,6 +29,8 @@ Further options on this page detail installing commandline Solidity compiler sof
|
||||
on your computer. Choose a commandline compiler if you are working on a larger contract
|
||||
or if you require more compilation options.
|
||||
|
||||
.. _solcjs:
|
||||
|
||||
npm / Node.js
|
||||
=============
|
||||
|
||||
|
@ -9,6 +9,9 @@ Using the compiler
|
||||
Using the Commandline Compiler
|
||||
******************************
|
||||
|
||||
.. note::
|
||||
This section doesn't apply to :ref:`solcjs <solcjs>`.
|
||||
|
||||
One of the build targets of the Solidity repository is ``solc``, the solidity commandline compiler.
|
||||
Using ``solc --help`` provides you with an explanation of all options. The compiler can produce various outputs, ranging from simple binaries and assembly over an abstract syntax tree (parse tree) to estimations of gas usage.
|
||||
If you only want to compile a single file, you run it as ``solc --bin sourceFile.sol`` and it will print the binary. Before you deploy your contract, activate the optimizer while compiling using ``solc --optimize --bin sourceFile.sol``. If you want to get some of the more advanced output variants of ``solc``, it is probably better to tell it to output everything to separate files using ``solc -o outputDirectory --bin --ast --asm sourceFile.sol``.
|
||||
|
Loading…
Reference in New Issue
Block a user