Branch: refs/heads/main
Revision: 03211b4
Author: benharsh
Link: dyno: add filenames' directories to module search paths by benharsh · Pull Request #20401 · chapel-lang/chapel · GitHub
Log Message:
Merge pull request #20401 from benharsh/dyno-search-file-dirs
dyno: add filenames' directories to module search paths
This PR allows chpl::parsing::setupModuleSearchPaths
to accept a list of ".chpl" file names that will be used to add more module search paths depending on the location of the provided files. For example, "chpl foo.chpl" would add the current directory to the module search paths.
This PR adds getChplFilenames
to files.h
, which returns a vector of ".chpl" file names.
This PR also separates the error message "Command line contains no .chpl source files" from the addition of source files. This change supports calling addSourceFiles
earlier than printStuff
, which supports things like chpl --version
in which no source files are expected.
[reviewed-by @mppf]
Modified Files:
M compiler/dyno/include/chpl/parsing/parsing-queries.h
M compiler/dyno/lib/parsing/parsing-queries.cpp
M compiler/dyno/test/resolution/testInteractive.cpp
M compiler/include/files.h
M compiler/main/driver.cpp
M compiler/util/files.cpp
Compare: https://github.com/chapel-lang/chapel/compare/c52abd37bf6e...03211b46a443