downsweep: Allow TargetFile not to exist when a buffer is given
Currently 'getRootSummary' will fail with an exception if a 'TargetFile' is given but it does not exist even if an input buffer is passed along for this target. In this case it is not necessary for the file to exist since the buffer will be used as input for the compilation pipeline instead of the file anyways.
Showing
- compiler/main/GhcMake.hs 1 addition, 1 deletioncompiler/main/GhcMake.hs
- compiler/main/HscTypes.hs 5 additions, 0 deletionscompiler/main/HscTypes.hs
- testsuite/tests/ghc-api/target-contents/TargetContents.hs 1 addition, 2 deletionstestsuite/tests/ghc-api/target-contents/TargetContents.hs
- testsuite/tests/ghc-api/target-contents/TargetContents.stderr 7 additions, 15 deletions...suite/tests/ghc-api/target-contents/TargetContents.stderr
Loading
Please register or sign in to comment