chapel icon indicating copy to clipboard operation
chapel copied to clipboard

Documentation clarification: -l is useable in require statements, but -L and -I are not

Open psath opened this issue 9 months ago • 7 comments

Summary of Problem

According to C interop docs you can use -L and -I flags in require statements to indicate non-standard header and library search directories, but on main (cb81008e74565fa) for

module myFoo {
  use CTypes;
  require "-L../../path/to/userspace/lib";
  require "-luserlib";
  ...
}

I am getting

wrapper.chpl:4: error: file '-L../../path/to/userspace/lib' does not have a recognized suffix

It does not complain about -l statements, though the linker obviously fails later because it doesn't know where to look for them..

As an aside, is there/should there be support for --isystem?

psath avatar May 01 '24 18:05 psath