Commit 825bfa3
fix: forward --pathmap: option to FCS so CallerFilePath respects <PathMap>
When MSBuild generates compiler options for an fsproj that uses
<PathMap>, <DeterministicSourcePaths>, or <SourceRoot>, it emits a
--pathmap:... flag. Previously, extractUsefulOptionsAndSources discarded
this flag, so FCS always used an empty PathMap and CallerFilePath always
returned absolute paths regardless of the user's configuration.
Forward --pathmap: from the main project only (mirroring how --langversion:
is handled) so that [<CallerFilePath>] respects the configured path
mappings at compile time.
Closes #4061
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 345bcd4 commit 825bfa3
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
438 | 438 | | |
439 | 439 | | |
440 | 440 | | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
441 | 444 | | |
442 | 445 | | |
443 | 446 | | |
| |||
0 commit comments