mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
doc: rephrase the case when two remapping keys are applicable
Fixes #1536
This commit is contained in:
parent
e079b1c53f
commit
c014448397
@ -96,8 +96,8 @@ Use in Actual Compilers
|
|||||||
When the compiler is invoked, it is not only possible to specify how to
|
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
|
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
|
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
|
``/usr/local/dapp-bin/library`` and the compiler will read the files from there.
|
||||||
remapping keys are prefixes of each other, the longest is tried first. This
|
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
|
allows for a "fallback-remapping" with e.g. ``""`` maps to
|
||||||
``"/usr/local/include/solidity"``. Furthermore, these remappings can
|
``"/usr/local/include/solidity"``. Furthermore, these remappings can
|
||||||
depend on the context, which allows you to configure packages to
|
depend on the context, which allows you to configure packages to
|
||||||
|
Loading…
Reference in New Issue
Block a user