diff options
author | Daniel Kirchner <daniel@ekpyron.org> | 2018-08-10 02:46:22 +0800 |
---|---|---|
committer | Daniel Kirchner <daniel@ekpyron.org> | 2018-08-11 01:26:48 +0800 |
commit | a7885e0b0a8808e9daa7cc3b86781997c614b8d3 (patch) | |
tree | 9306c07b3445117a318f14dcde5efd1bd7dcaf9d /docs/layout-of-source-files.rst | |
parent | 954d7433bd8c10bce917326f70070077f0cfc165 (diff) | |
download | dexon-solidity-a7885e0b0a8808e9daa7cc3b86781997c614b8d3.tar.gz dexon-solidity-a7885e0b0a8808e9daa7cc3b86781997c614b8d3.tar.zst dexon-solidity-a7885e0b0a8808e9daa7cc3b86781997c614b8d3.zip |
Update documentation.
Diffstat (limited to 'docs/layout-of-source-files.rst')
-rw-r--r-- | docs/layout-of-source-files.rst | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/docs/layout-of-source-files.rst b/docs/layout-of-source-files.rst index 46ef3d57..4bacd704 100644 --- a/docs/layout-of-source-files.rst +++ b/docs/layout-of-source-files.rst @@ -100,11 +100,10 @@ When the compiler is invoked, it is not only possible to specify how to discover the first element of a path, but it is possible to specify path prefix remappings so that e.g. ``github.com/ethereum/dapp-bin/library`` is remapped to ``/usr/local/dapp-bin/library`` and the compiler will read the files from there. -If multiple remappings can be applied, the one with the longest key is tried first. This -allows for a "fallback-remapping" with e.g. ``""`` maps to -``"/usr/local/include/solidity"``. Furthermore, these remappings can -depend on the context, which allows you to configure packages to -import e.g. different versions of a library of the same name. +If multiple remappings can be applied, the one with the longest key is tried first. +An empty prefix is not allowed. Furthermore, these remappings can depend on the context, +which allows you to configure packages to import e.g. different versions of a library +of the same name. **solc**: @@ -148,7 +147,7 @@ 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 ``=/``. +remapping ``/=/``. If there are multiple remappings that lead to a valid file, the remapping with the longest common prefix is chosen. |