Skip to content

Commit 008d705

Browse files
authored
Disable build symbol check by default (#624)
I've personally found this to mostly be an annoyance having it on-by-default. This means that changing flags can often break the build and it also means that externally using a different LLVM can often break the build too. In the interest of making the build less brittle this disables the check by default. To avoid losing the benefit of having this check, however, CI opts-in to enabling this check for all tests. That should mean that we're still testing in this repository, but integrations elsewhere don't have to worry about it.
1 parent 4877d44 commit 008d705

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ jobs:
136136
llvm_asset_suffix: ${{ matrix.llvm_asset_suffix }}
137137

138138
- name: Build libc
139-
run: make -j4 $MAKE_TARGETS
139+
run: make -j4 $MAKE_TARGETS CHECK_SYMBOLS=yes
140140

141141
- name: Download Test dependencies
142142
if: matrix.test

Makefile

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -881,14 +881,9 @@ no-check-symbols: $(STARTUP_FILES) libc $(DUMMY_LIBS)
881881

882882
finish: no-check-symbols
883883

884-
ifeq ($(LTO),no)
885-
# The check for defined and undefined symbols expects there to be a heap
886-
# allocator (providing malloc, calloc, free, etc). Skip this step if the build
887-
# is done without a malloc implementation.
888-
ifneq ($(MALLOC_IMPL),none)
884+
ifeq ($(CHECK_SYMBOLS),yes)
889885
finish: check-symbols
890886
endif
891-
endif
892887

893888
install: finish
894889
mkdir -p "$(INSTALL_DIR)"

0 commit comments

Comments
 (0)