mirror of
https://github.com/clearlinux/autospec.git
synced 2026-08-26 01:56:56 +00:00
Set ${GCC_IGNORE_WERROR} environment variable
Clear ships with a patch in GCC that allows ignoring the -Werror compilation flag if this environment variable is set. -Werror is a useful flag for the upstream package maintainers, but is a source of headaches for downstream users. Signed-off-by: Leandro Pereira <leandro.pereira@intel.com>
This commit is contained in:
committed by
William Douglas
parent
87ec254510
commit
c93dda3fcb
@@ -429,6 +429,13 @@ class Specfile(object):
|
||||
"""Write variable exports to spec file."""
|
||||
flags = []
|
||||
arch = os.uname()[4]
|
||||
|
||||
# Clear ships with a patch in GCC that allows ignoring the -Werror
|
||||
# compilation flag if this environment variable is set. -Werror
|
||||
# is a useful flag for the upstream package maintainers, but is
|
||||
# a source of headaches for downstream users.
|
||||
self._write_strip("export GCC_IGNORE_WERROR=1\n")
|
||||
|
||||
if config.config_opts['use_clang']:
|
||||
self._write_strip("export CC=clang\n")
|
||||
self._write_strip("export CXX=clang++\n")
|
||||
|
||||
Reference in New Issue
Block a user