feat: support pkg/ to disambiguate packages
This commit is contained in:
parent
10940bf07b
commit
dc8097dae6
2 changed files with 4 additions and 2 deletions
|
|
@ -155,7 +155,9 @@ def resolveTargetBaseSpec (ws : Workspace) (spec : String) (facet : Name) : Exce
|
|||
| [pkgSpec, targetSpec] =>
|
||||
let pkgSpec := if pkgSpec.startsWith "@" then pkgSpec.drop 1 else pkgSpec
|
||||
let pkg ← parsePackageSpec ws pkgSpec
|
||||
if targetSpec.startsWith "+" then
|
||||
if targetSpec.isEmpty then
|
||||
resolvePackageTarget ws pkg facet
|
||||
else if targetSpec.startsWith "+" then
|
||||
let mod := targetSpec.drop 1 |>.toName
|
||||
if let some mod := pkg.findModule? mod then
|
||||
resolveModuleTarget ws mod facet
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ $LAKE build Bar:o
|
|||
|
||||
test -f ./build/ir/Bar.o
|
||||
|
||||
$LAKE build
|
||||
$LAKE build targets/
|
||||
|
||||
./build/bin/c
|
||||
test -f ./build/lib/Foo.olean
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue