| # Copyright 2021 The Chromium OS Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| # Pixman can't be built with clang's integrated assembler. |
| # Fallback to GNU assembler. |
| # https://crbug.com/793487 |
| # https://bugs.gentoo.org/768138 |
| cros_pre_src_prepare_force_gcc_as() { |
| export CFLAGS+=" -fno-integrated-as" |
| } |
| |
| # As preparation for making DWARF v5 the default debug information format |
| # anything that builds with -fno-integrated-as must also build with |
| # -gdwarf-4, https://crbug.com/1128633 . |
| cros_pre_src_prepare_force_gdwarf4() { |
| export CFLAGS+=" -gdwarf-4" |
| export CXXFLAGS+=" -gdwarf-4" |
| } |