diff options
author | chriseth <c@ethdev.com> | 2016-01-30 06:17:43 +0800 |
---|---|---|
committer | chriseth <c@ethdev.com> | 2016-01-30 06:17:43 +0800 |
commit | 02161b29b804e5678fc00590a19ba790918b0c14 (patch) | |
tree | a71e3ba6c64706bcf5b4c5dd9dedf1cf7cde4f62 /docs/layout-of-source-files.rst | |
parent | 0c5d892dbac95ae2418fcfc29ddfd23e4effa5ff (diff) | |
download | dexon-solidity-02161b29b804e5678fc00590a19ba790918b0c14.tar.gz dexon-solidity-02161b29b804e5678fc00590a19ba790918b0c14.tar.zst dexon-solidity-02161b29b804e5678fc00590a19ba790918b0c14.zip |
documentation
Diffstat (limited to 'docs/layout-of-source-files.rst')
-rw-r--r-- | docs/layout-of-source-files.rst | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/docs/layout-of-source-files.rst b/docs/layout-of-source-files.rst index 1128685d..b795d154 100644 --- a/docs/layout-of-source-files.rst +++ b/docs/layout-of-source-files.rst @@ -71,6 +71,15 @@ and then run the compiler as `solc github.com/ethereum/dapp-bin/=/usr/local/dapp-bin/ source.sol` +Note that solc only allows you to include files from certain directories: +They have to be in the directory (or subdirectory) of one of the explicitly +specified source files or in the directory (or subdirectory) of a remapping +target. If you want to allow direct absolute includes, just add the +remapping `=/`. + +If there are multiple remappings that lead to a valid file, the remapping +with the longest common prefix is chosen. + **browser-solidity**: The `browser-based compiler <https://chriseth.github.io/browser-solidity>`_ |