Open
Description
This function works:
fn ~(Path:or-source :source) :args -> {
Path :relative-dir = Path:parent $source
c++:module ^{relative-dir} { ... }
}
however this function doesn't:
fn ~(Path:or-source :source) :args -> {
relative-dir = Path:parent $source
c++:module ^{relative-dir} { ... }
}
I haven't quite tracked down what "doesn't work" means--there is no ergo error, but the module paths are somehow evaluated differently (and result in compiler errors, specifically missing #include
s). Also, I guess this is maybe a bug in ergo and not ergo-cpp...
Metadata
Metadata
Assignees
Labels
No labels