[all-commits] [llvm/llvm-project] dcdb4a: [libc][cmake] append per obj compile options inste...
Nick Desaulniers via All-commits
all-commits at lists.llvm.org
Fri Jan 5 13:31:49 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: dcdb4a36ae3549fb1852b2c0089247a8d477eaf3
https://github.com/llvm/llvm-project/commit/dcdb4a36ae3549fb1852b2c0089247a8d477eaf3
Author: Nick Desaulniers <nickdesaulniers at users.noreply.github.com>
Date: 2024-01-05 (Fri, 05 Jan 2024)
Changed paths:
M libc/cmake/modules/LLVMLibCObjectRules.cmake
Log Message:
-----------
[libc][cmake] append per obj compile options instead of prepending (#77126)
This allows individual object files to override the common compile
commands in
their local CMakeLists' add_object_library call.
For example, the common compile commands contain -Wall and -Wextra.
Before
this patch, the per object COMPILE_OPTIONS were prepended to these, so
that
builds of individual object files could not individually disable
specific
diagnostics from those groups explicitly.
After this patch, the per-object file compile objects are appended to
the list
of compiler flags, enabling this use case.
ARGN is a bit of cmake magic; let's be explicit in the APPEND that we're
appending the compile options.
Link: #77007
More information about the All-commits
mailing list