Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Regression in distros.nim (foreignDep fails to compile) #10024
Apparently the culprit is the following block in
when defined(nimdistros): import distros if detectOs(Ubuntu) or detectOs(Debian): foreignDep "libblas-dev" foreignDep "libopenblas-dev" foreignDep "liblapack-dev" else: foreignDep "libblas" foreignDep "liblapack"
which in turn triggers the failure at this line
By the way, the easiest way to reproduce is to use any nimble file which contains
when defined(nimdistros): import distros foreignDep "foo"
It seems this only affects nimble, because of this line
when defined(nimble): nimscriptapi.foreignDeps.add(c)
Now, according to