[all-commits] [llvm/llvm-project] 1d104f: Build fix: Turn off _GLIBCXX_DEBUG based on a comp...

Nicolai Hähnle via All-commits all-commits at lists.llvm.org
Mon Mar 2 07:16:57 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 1d104f75498c97cca8ed1fc068a5c359fb7276d8
      https://github.com/llvm/llvm-project/commit/1d104f75498c97cca8ed1fc068a5c359fb7276d8
  Author: Nicolai Hähnle <nicolai.haehnle at amd.com>
  Date:   2020-03-02 (Mon, 02 Mar 2020)

  Changed paths:
    M llvm/cmake/modules/HandleLLVMOptions.cmake

  Log Message:
  -----------
  Build fix: Turn off _GLIBCXX_DEBUG based on a compile check

Summary:
Enabling _GLIBCXX_DEBUG (implied by LLVM_ENABLE_EXPENSIVE_CHECKS) causes
std::min_element (and presumably others) to no longer be constexpr, which
in turn causes the build to fail.

This seems like a bug in the GCC STL. This change works around it.

Change-Id: I5fc471caa9c4de3ef4e87aeeac8df1b960e8e72c

Reviewers: tstellar, hans, serge-sans-paille

Differential Revision: https://reviews.llvm.org/D75199




More information about the All-commits mailing list