[all-commits] [llvm/llvm-project] daefb1: [OpenMP] Make `omp.h` work when compiled with `-ff...

Joseph Huber via All-commits all-commits at lists.llvm.org
Tue Feb 4 04:48:46 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: daefb1b0121498ea48a0ed6514f11fb66872bafc
      https://github.com/llvm/llvm-project/commit/daefb1b0121498ea48a0ed6514f11fb66872bafc
  Author: Joseph Huber <huberjn at outlook.com>
  Date:   2025-02-04 (Tue, 04 Feb 2025)

  Changed paths:
    M openmp/runtime/src/include/omp.h.var

  Log Message:
  -----------
  [OpenMP] Make `omp.h` work when compiled with `-ffreestanding` (#125618)

Summary:
Freestanding builds have `stddef.h` and `stdint.h` but not `stdlib.h`.
We don't actually use any `stdlib.h` definitions in the OpenMP headers,
and some definitions from this header are usable without the OpenMP
runtime (allocators) so we should be able to do this. This ignores the
include if possible, removing the implicit include would possibly break
some applications so it stays here.



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