[all-commits] [llvm/llvm-project] 3149c9: [flang] Fix Darwin build after 4762c6557d15 (#84478)

Leandro Lupori via All-commits all-commits at lists.llvm.org
Mon Mar 11 04:26:03 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3149c934cb2602691de40d2aeb238675e8831d57
      https://github.com/llvm/llvm-project/commit/3149c934cb2602691de40d2aeb238675e8831d57
  Author: Leandro Lupori <leandro.lupori at linaro.org>
  Date:   2024-03-11 (Mon, 11 Mar 2024)

  Changed paths:
    M flang/CMakeLists.txt
    M flang/include/flang/Evaluate/integer.h
    M flang/include/flang/Evaluate/real.h
    M flang/lib/Evaluate/fold-implementation.h
    M flang/lib/Evaluate/intrinsics-library.cpp

  Log Message:
  -----------
  [flang] Fix Darwin build after 4762c6557d15 (#84478)

Select POSIX 2008 standard to avoid including Darwin extensions.
Otherwise, Darwin's math.h header defines HUGE, which conflicts
with Flang's HUGE function.

This started happening after 4762c6557d15 (#82443), that added the
"utility" include, which seems to include "math.h".



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list