-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix ignored library name settings (#51)
* Fix ignored library name overrides Clauses like `name: xyz' in .../path/to/not-xyz/mos.yml library manifest files didn't work, as in, the corresponding mgos_xyz_init(), HAVE_MGOS_XYZ etc names didn't correctly follow the name thus set. Fix that by checking for library duplicates via location rather than name prior to reading the library manifest, then via the certainly correct name too. Ensure that the construct libs: - origin: .../path/to/not-xyz name: xyz (apparently useful for library overrides) never clashes with an in-library explicit name setting. Make the circumstances for `duplicate library' error messages impossible (keep the interdependent read and modification of libsHandled in parsing context within the same, uninterrupted streak of holding the parsing context mutex) and drop these messages. Add clarifying build log lines to help reviewing the intricacies of library reading, handling and name resolution.
- Loading branch information
Showing
55 changed files
with
565 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
cli/manifest_parser/test_manifests/testset_10_lib_name_settings/common/lib-blank/mos.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
type: lib | ||
sources: [src] | ||
manifest_version: 2020-08-02 |
Empty file.
4 changes: 4 additions & 0 deletions
4
cli/manifest_parser/test_manifests/testset_10_lib_name_settings/common/lib1-mft-name/mos.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
name: lib1 | ||
type: lib | ||
sources: [src] | ||
manifest_version: 2020-08-02 |
1 change: 1 addition & 0 deletions
1
cli/manifest_parser/test_manifests/testset_10_lib_name_settings/common/lib1-mft-name/src
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../lib-blank/src |
8 changes: 8 additions & 0 deletions
8
cli/manifest_parser/test_manifests/testset_10_lib_name_settings/test_01_mft_name/app/mos.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
manifest_version: 2020-08-02 | ||
|
||
libs: | ||
- location: libs/mylib1 | ||
|
||
# A library in use has `name' set in its manifest that doesn't correspond to the | ||
# basename of its location. Check that the generated MGOS_HAVE_* and | ||
# mgos_*_init() identifiers are proper. |
Oops, something went wrong.