git: cc120: Extract {PREPROCESSOR, DRIVER}_DEFINES from dragonfly-native.h

Aaron LI aly at crater.dragonflybsd.org
Tue Nov 17 00:32:09 PST 2026


commit 8ab0c82dc6e1a7a6b803bfc50fddff223abf2d02
Author: Aaron LI <aly at aaronly.me>
Date:   Tue Nov 17 15:39:35 2026 +0800

    cc120: Extract {PREPROCESSOR,DRIVER}_DEFINES from dragonfly-native.h
    
    Refactor dragonfly-native.h to create {PREPROCESSOR,DRIVER}_DEFINES
    make variables for use in libbackend and drivers. These two variables
    are also defined in GCC's own makefile.
    
    PREPROCESSOR_DEFINES is only used by cppdefault.cc, and DRIVER_DEFINES
    is used by gcc.cc and gcc-ar.cc (so applies to gcc-ar, gcc-nm and
    gcc-ranlib LTO wrappers).
    
    The intention is to make some defines in DRIVER_DEFINES available to
    gcc-ar.cc, which doesn't include "tm.h" to obtain "dragonfly-native.h".
    So this is a required change for the upcoming gcc-{ar,nm,ranlib} LTO
    wrappers.

Summary of changes:
 gnu/usr.bin/cc120/Makefile.inc                     | 53 ++++++++++++++++++++--
 .../cc120/cc_prep/config/dragonfly-native.h        | 19 --------
 gnu/usr.bin/cc120/drivers/Makefile.inc             |  4 +-
 gnu/usr.bin/cc120/libbackend/Makefile              |  2 +
 4 files changed, 51 insertions(+), 27 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/8ab0c82dc6e1a7a6b803bfc50fddff223abf2d02


-- 
DragonFly BSD source repository


More information about the Commits mailing list