diff options
author | Ryan Scott <ryan.gl.scott@gmail.com> | 2019-11-13 10:35:11 -0500 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2019-11-23 18:56:00 -0500 |
commit | 15f1dc3316db0b07434862de8382b4ddd27fecca (patch) | |
tree | 20df1293713f01fd74a3a0bbc86908d63d119370 /configure.ac | |
parent | 4a1e7e47f797fab4165b7cba05edc08d41f5d80e (diff) | |
download | haskell-15f1dc3316db0b07434862de8382b4ddd27fecca.tar.gz |
Prevent -optc arguments from being duplicated in reverse order (#17471)
This reverts a part of commit
7bc5d6c6578ab9d60a83b81c7cc14819afef32ba that causes all arguments
to `-optc` (and `-optcxx`) to be passed twice to the C/C++ compiler,
once in reverse order and then again in the correct order. While
passing duplicate arguments is usually harmless it can cause breakage
in this pattern, which is employed by Hackage libraries in the wild:
```
ghc Foo.hs foo.c -optc-D -optcFOO
```
As `FOO -D -D FOO` will cause compilers to error.
Fixes #17471.
Diffstat (limited to 'configure.ac')
0 files changed, 0 insertions, 0 deletions