Revert "Pass preprocessor options to C compiler when building foreign C files (#16737)"
This reverts commit 1c18d3b4. `-optP` should pass options to the preprocessor, that might be a very different program to the C compiler, so passing the options to the C compiler is likely to result in `-optP` being useless. Fixes #17185 and #21291
Showing
- compiler/GHC/Driver/Pipeline/Execute.hs 0 additions, 14 deletionscompiler/GHC/Driver/Pipeline/Execute.hs
- driver/ghci/ghci-wrapper.cabal.in 1 addition, 1 deletiondriver/ghci/ghci-wrapper.cabal.in
- hadrian/src/Rules/BinaryDist.hs 2 additions, 2 deletionshadrian/src/Rules/BinaryDist.hs
- hadrian/src/Settings/Packages.hs 10 additions, 5 deletionshadrian/src/Settings/Packages.hs
- testsuite/tests/driver/T16737.hs 0 additions, 32 deletionstestsuite/tests/driver/T16737.hs
- testsuite/tests/driver/T16737.stdout 0 additions, 2 deletionstestsuite/tests/driver/T16737.stdout
- testsuite/tests/driver/T16737include/T16737.h 0 additions, 7 deletionstestsuite/tests/driver/T16737include/T16737.h
- testsuite/tests/driver/all.T 0 additions, 6 deletionstestsuite/tests/driver/all.T
testsuite/tests/driver/T16737.hs
deleted
100644 → 0
testsuite/tests/driver/T16737.stdout
deleted
100644 → 0
Please register or sign in to comment