Skip to content

Commit

Permalink
toolchain: log and check the value of OBJC
Browse files Browse the repository at this point in the history
Signed-off-by: Zygmunt Krynicki <[email protected]>
  • Loading branch information
zyga committed Jan 29, 2024
1 parent 28d959b commit ae1529f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions tests/Toolchain/Test.mk
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ debug-defaults: debug-defaults.log
# By default CC=cc and CXX is either c++ or g++.
GREP -qFx 'DEBUG: CC=cc' <$<
GREP -qx 'DEBUG: CXX=[cg][+][+]' <$<
GREP -qx 'DEBUG: OBJC=cc' <$<

debug-sysroot.log: ZMK.makeOverrides += Configure.SysRoot=/path
debug-sysroot: debug-sysroot.log
Expand Down
2 changes: 1 addition & 1 deletion zmk/Toolchain.mk
Original file line number Diff line number Diff line change
Expand Up @@ -104,4 +104,4 @@ ifneq (,$(and $(Toolchain.DependencyTracking),$(or $(Toolchain.IsGcc),$(Toolchai
$(if $(Toolchain.debug),$(info DEBUG: compiling object files will generate make dependency information))
endif

$(if $(Toolchain.debug),$(foreach v,CC CXX CPP CFLAGS CXXFLAGS CPPFLAGS OBJCFLAGS OBJCXXFLAGS ARFLAGS TARGET_ARCH LDLIBS LDFLAGS $(sort $(filter Toolchain.%,$(.VARIABLES))),$(info DEBUG: $v=$($v))))
$(if $(Toolchain.debug),$(foreach v,CC CXX OBJC CPP CFLAGS CXXFLAGS CPPFLAGS OBJCFLAGS OBJCXXFLAGS ARFLAGS TARGET_ARCH LDLIBS LDFLAGS $(sort $(filter Toolchain.%,$(.VARIABLES))),$(info DEBUG: $v=$($v))))

0 comments on commit ae1529f

Please sign in to comment.