@@ -52,19 +52,19 @@ generated for the path to each library dependency and appended to the
52
52
If multiple libraries contain a file that matches the ` #include ` directive, the priority is determined by applying the
53
53
following rules, one by one in this order, until a rule determines a winner:
54
54
55
- 1 . A library that has been specified using the [ ` --library ` option] ( commands/arduino-cli_compile.md#options ) of
56
- ` arduino-cli compile ` wins against a library in other locations
55
+ 1 . A library has been specified using the [ ` --library ` option] ( commands/arduino-cli_compile.md#options ) of
56
+ ` arduino-cli compile ` .
57
+ 1 . A library is found in the ` libraries ` subfolder of the sketch.
57
58
1 . A library that is architecture compatible wins against a library that is not architecture compatible (see
58
59
[ ** Architecture Matching** ] ( #architecture-matching ) )
59
60
1 . A library with both [ library name] ( #library-name-priority ) and [ folder name] ( #folder-name-priority ) matching the
60
- include wins
61
- 1 . A library that has better "library name priority" or "folder name priority" wins (see
62
- [ ** Library Name Priority** ] ( #library-name-priority ) and [ ** Folder Name Priority** ] ( #folder-name-priority ) )
63
- 1 . A library that is architecture optimized wins against a library that is not architecture optimized (see
64
- [ ** Architecture Matching** ] ( #architecture-matching ) )
65
- 1 . A library that has a better "location priority" wins (see [ ** Location Priority** ] ( #location-priority ) )
66
- 1 . A library that has a folder name with a better score using the "closest-match" algorithm wins
67
- 1 . A library that has a folder name that comes first in alphanumeric order wins
61
+ include.
62
+ 1 . A library has better "library name priority" or "folder name priority" (see
63
+ [ ** Library Name Priority** ] ( #library-name-priority ) and [ ** Folder Name Priority** ] ( #folder-name-priority ) ).
64
+ 1 . A library is architecture optimized (see [ ** Architecture Matching** ] ( #architecture-matching ) ).
65
+ 1 . A library has a better "location priority" (see [ ** Location Priority** ] ( #location-priority ) ).
66
+ 1 . A library has a folder name with a better score using the "closest-match" algorithm.
67
+ 1 . A library has a folder name that comes first in alphanumeric order.
68
68
69
69
### Architecture Matching
70
70
@@ -126,14 +126,15 @@ The "location priority" is determined as follows (in order of highest to lowest
126
126
127
127
1 . The library is under a custom libraries path specified via the
128
128
[ ` --libraries ` option] ( commands/arduino-cli_compile.md#options ) of ` arduino-cli compile ` (in decreasing order of
129
- priority when multiple custom paths are defined)
130
- 1 . The library is under the ` libraries ` subfolder of the IDE's sketchbook or Arduino CLI's user directory
129
+ priority when multiple custom paths are defined).
130
+ 1 . The library is under the ` libraries ` subfolder of the sketch.
131
+ 1 . The library is under the ` libraries ` subfolder of the IDE's sketchbook or Arduino CLI's user directory.
131
132
1 . The library is bundled with the board platform/core
132
- ([ ` {runtime.platform.path}/libraries ` ] ( platform-specification.md#global-predefined-properties ) )
133
+ ([ ` {runtime.platform.path}/libraries ` ] ( platform-specification.md#global-predefined-properties ) ).
133
134
1 . The library is bundled with the [ referenced] ( platform-specification.md#referencing-another-core-variant-or-tool )
134
- board platform/core
135
+ board platform/core.
135
136
1 . The library is bundled with the Arduino IDE (this location is determined by the Arduino CLI configuration setting
136
- ` directories.builtin.libraries ` )
137
+ ` directories.builtin.libraries ` ).
137
138
138
139
#### Location priorities in Arduino Web Editor
139
140
0 commit comments