[all-commits] [llvm/llvm-project] 07504a: [libc] Stop depending on .cpp files in libcxx_shar...

Alexey Samsonov via All-commits all-commits at lists.llvm.org
Tue Apr 1 16:23:40 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 07504afc42bd295ca290c8c462869759b97e0fdc
      https://github.com/llvm/llvm-project/commit/07504afc42bd295ca290c8c462869759b97e0fdc
  Author: Alexey Samsonov <vonosmas at gmail.com>
  Date:   2025-04-01 (Tue, 01 Apr 2025)

  Changed paths:
    M libc/src/__support/CMakeLists.txt
    M libc/src/__support/libc_assert.h
    M libc/src/__support/str_to_float.h
    M libc/src/__support/str_to_integer.h
    M utils/bazel/llvm-project-overlay/libc/BUILD.bazel

  Log Message:
  -----------
  [libc] Stop depending on .cpp files in libcxx_shared_headers library. (#133999)

Fix two instances of libcxx_shared_headers depending on .cpp files (in
Bazel build):

* Don't depend on exit syscall in LIBC_ASSERT implementation. This
dependency is not used, since LIBC_ASSERT always uses system <assert.h>
in the overlay mode, which is the only mode supported by Bazel.
* Don't depend on libc_errno in str-to-float and str-to-integer
conversions. We only need the ERANGE value, which can be obtained from
the proxy header instead.



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