BUILD.gn 692 B

1234567891011121314151617181920212223242526
  1. # Copyright 2020 The Chromium Authors. All rights reserved.
  2. # Use of this source code is governed by a BSD-style license that can be
  3. # found in the LICENSE file.
  4. config("eigen_includes") {
  5. include_dirs = [ "src" ]
  6. cflags = [
  7. "-Wno-deprecated-copy",
  8. "-Wno-extra-semi",
  9. "-Wno-unused-function",
  10. "-Wno-unused-result",
  11. ]
  12. defines = [
  13. "EIGEN_MPL2_ONLY",
  14. "EIGEN_MAX_ALIGN_BYTES=64",
  15. "EIGEN_HAS_TYPE_TRAITS=0",
  16. ]
  17. if (target_os == "win" && target_cpu == "arm64") {
  18. # https://crbug.com/1182242 - Neon extensions are temporarily disabled
  19. # for this component on Windows on Arm due to compilation errors.
  20. defines += [ "EIGEN_DONT_VECTORIZE" ]
  21. }
  22. }