Commit b3cd485
committed
fix: remove incorrect CPP guard around hscCheckSafeImports
Safe Haskell import checking (hscCheckSafeImports) is a compile-time
feature that should work regardless of interpreter support. The previous
CPP guard `#if !defined(HAVE_INTERPRETER)` caused stage1 builds (which
use -interpreter flag) to skip Safe Haskell checking when compiling
boot libraries.
This resulted in incorrect Safe Haskell metadata in .hi files, causing
testsuite failures for Safe Haskell tests (BadImport, Dep, ImpSafe,
safePkg01, etc.) because ghc-internal modules compiled by stage1 had
different safety inferences than expected.
The fix removes the CPP guard so hscCheckSafeImports always runs,
ensuring consistent Safe Haskell behavior regardless of whether the
compiler has interpreter support enabled.1 parent aa6e7cd commit b3cd485
1 file changed
Lines changed: 0 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
771 | 771 | | |
772 | 772 | | |
773 | 773 | | |
774 | | - | |
775 | | - | |
776 | | - | |
777 | 774 | | |
778 | | - | |
779 | 775 | | |
780 | 776 | | |
781 | 777 | | |
| |||
0 commit comments