| Auto-Submit | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Does it work well if each module depends on the standard library?
I've seen the error like "XXX from module 'B' is not present in definition of 'std::domain_error' in module 'A'". The detail is described: https://buganizer.corp.google.com/issues/445665305
It may be fixed in a newer Swift but I don't think it's currently fixed.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
modules = [
{
name = "StdTestHelpers"
sources = [
"string_helper.h",
"vector.h",
]
},
]Can you try to have multi modules here?
```
modules = [
{
name = "StdStringHelpers"
sources = [
"string_helper.h",
]
},
{
name = "StdVectorHelpers"
sources = [
"vector.h",
]
},
]
```
# array of dictionaries. each dictionary must specify `name`Technically, those are not dictionaries, but scopes in the gn lingo.
apinotes = [ "classes.apinotes" ]Shouldn't `apinotes` be defined in a specific `module`?
E.g.
```
modules = [
{
name = "Classes"
sources = [
"inlined_classes.h",
"outlined.h",
]
apinotes = [ "classes.apinotes" ]
},
{
name = "Polymorphism"
sources = [ "polymorphism.h" ]
},
]
```
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Auto-Submit | +1 |
Does it work well if each module depends on the standard library?
I've seen the error like "XXX from module 'B' is not present in definition of 'std::domain_error' in module 'A'". The detail is described: https://buganizer.corp.google.com/issues/445665305
It may be fixed in a newer Swift but I don't think it's currently fixed.
Several modules depending on libc++ is still a problem. The compiler bug that causes it is fixed in Swift 6.3 which should be released soon-ish. I suspect this bug would also get fixed if we used `import std`, but we can't do that right now because the `std` module bundled with xcode uses an incompatible version of libc++. I am currently working on fixing that. Stay tuned.
# array of dictionaries. each dictionary must specify `name`Technically, those are not dictionaries, but scopes in the gn lingo.
Done
Shouldn't `apinotes` be defined in a specific `module`?
E.g.
```
modules = [
{
name = "Classes"
sources = [
"inlined_classes.h",
"outlined.h",
]
apinotes = [ "classes.apinotes" ]
},
{
name = "Polymorphism"
sources = [ "polymorphism.h" ]
},
]
```
Good idea. Not technically required, but it's more structured that way. Thanks for the suggestion. done.
modules = [
{
name = "StdTestHelpers"
sources = [
"string_helper.h",
"vector.h",
]
},
]Can you try to have multi modules here?
```
modules = [
{
name = "StdStringHelpers"
sources = [
"string_helper.h",
]
},
{
name = "StdVectorHelpers"
sources = [
"vector.h",
]
},
]
```
Unfortunately, this does not work yet due to that compiler bug that causes link-time issues.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
| Commit-Queue | +2 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Add support for multiple modules to swift_modulemap
Modifies the swift_modulemap gn template to support the definition
of multiple module per modulemap.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |