Skip to content

Commit 29ff1b7

Browse files
committed
[Make] remove BINARYBUILDER_LLVM_ASSERTS and use LLVM_ASSERTIONS instead
1 parent 2106897 commit 29ff1b7

File tree

4 files changed

+3
-13
lines changed

4 files changed

+3
-13
lines changed

Make.inc

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -454,10 +454,6 @@ CXX_DISABLE_ASSERTION := -DJL_NDEBUG
454454
DISABLE_ASSERTIONS := -DNDEBUG -DJL_NDEBUG
455455
endif
456456

457-
ifeq ($(LLVM_ASSERTIONS),0)
458-
CXX_DISABLE_ASSERTION += -DNDEBUG
459-
endif
460-
461457
# Compiler specific stuff
462458

463459
ifeq ($(USEMSVC), 1)
@@ -1200,12 +1196,6 @@ endef
12001196
$(foreach proj,$(BB_PROJECTS),$(eval $(call SET_BB_DEFAULT,$(proj))))
12011197

12021198

1203-
1204-
# Use the Assertions build
1205-
BINARYBUILDER_LLVM_ASSERTS ?= 0
1206-
1207-
1208-
12091199
# OS specific stuff
12101200

12111201
# install_name_tool

contrib/refresh_checksums.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ endef
3939
# If $(2) == `src`, this will generate a `USE_BINARYBUILDER_FOO=0` make flag
4040
# It will also generate a `FOO_BB_TRIPLET=$(2)` make flag.
4141
define make_flags
42-
USE_BINARYBUILDER=$(if $(filter src,$(2)),0,1) $(call makevar,$(1))_BB_TRIPLET=$(if $(filter src,$(2)),,$(2)) BINARYBUILDER_LLVM_ASSERTS=$(if $(filter assert,$(3)),1,0) DEPS_GIT=0
42+
USE_BINARYBUILDER=$(if $(filter src,$(2)),0,1) $(call makevar,$(1))_BB_TRIPLET=$(if $(filter src,$(2)),,$(2)) LLVM_ASSERTIONS=$(if $(filter assert,$(3)),1,0) DEPS_GIT=0
4343
endef
4444

4545
# checksum_bb_dep takes in (name, triplet), and generates a `checksum-$(1)-$(2)` target.

deps/llvm.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,7 @@ endif
632632
else # USE_BINARYBUILDER_LLVM
633633

634634
# We provide a way to subversively swap out which LLVM JLL we pull artifacts from
635-
ifeq ($(BINARYBUILDER_LLVM_ASSERTS), 1)
635+
ifeq ($(LLVM_ASSERTIONS), 1)
636636
LLVM_JLL_DOWNLOAD_NAME := libLLVM_assert
637637
LLVM_JLL_VER := $(LLVM_ASSERT_JLL_VER)
638638
endif

src/debuginfo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -974,10 +974,10 @@ static objfileentry_t &find_object_file(uint64_t fbase, StringRef fname) JL_NOTS
974974
DebugInfo(errorCodeToError(std::make_error_code(std::errc::no_such_file_or_directory)));
975975
// Can't find a way to construct an empty Expected object
976976
// that can be ignored.
977-
ignoreError(DebugInfo);
978977
if (fname.substr(sep + 1) != info.filename) {
979978
debuginfopath = fname.substr(0, sep + 1).str();
980979
debuginfopath += info.filename;
980+
ignoreError(DebugInfo);
981981
DebugInfo = openDebugInfo(debuginfopath, info);
982982
}
983983
if (!DebugInfo) {

0 commit comments

Comments
 (0)