@@ -156,6 +156,10 @@ ifeq ($(fPIC),)
156
156
LLVM_CMAKE += -DLLVM_ENABLE_PIC=OFF
157
157
endif
158
158
159
+ # disable ABI breaking checks: by default only enabled for asserts build, in which case
160
+ # it is then impossible to call non-asserts LLVM libraries (like out-of-tree backends)
161
+ LLVM_CMAKE += -DLLVM_ABI_BREAKING_CHECKS=FORCE_OFF
162
+
159
163
ifeq ($(BUILD_CUSTOM_LIBCXX ) ,1)
160
164
LLVM_LDFLAGS += -Wl,-rpath,$(build_libdir )
161
165
LLVM_CPPFLAGS += -I$(build_includedir )
@@ -400,6 +404,7 @@ ifeq ($(LLVM_VER_SHORT),9.0)
400
404
$(eval $(call LLVM_PATCH,llvm-D27629-AArch64-large_model_6.0.1))
401
405
$(eval $(call LLVM_PATCH,llvm8-D34078-vectorize-fdiv))
402
406
$(eval $(call LLVM_PATCH,llvm-7.0-D44650)) # mingw32 build fix
407
+ $(eval $(call LLVM_PATCH,llvm-6.0-DISABLE_ABI_CHECKS))
403
408
$(eval $(call LLVM_PATCH,llvm9-D50010-VNCoercion-ni))
404
409
$(eval $(call LLVM_PATCH,llvm-exegesis-mingw)) # mingw build
405
410
$(eval $(call LLVM_PATCH,llvm-test-plugin-mingw)) # mingw build
@@ -416,6 +421,7 @@ ifeq ($(LLVM_VER_SHORT),10.0)
416
421
$(eval $(call LLVM_PATCH,llvm-D27629-AArch64-large_model_6.0.1))
417
422
$(eval $(call LLVM_PATCH,llvm8-D34078-vectorize-fdiv))
418
423
$(eval $(call LLVM_PATCH,llvm-7.0-D44650)) # mingw32 build fix
424
+ $(eval $(call LLVM_PATCH,llvm-6.0-DISABLE_ABI_CHECKS))
419
425
$(eval $(call LLVM_PATCH,llvm9-D50010-VNCoercion-ni))
420
426
$(eval $(call LLVM_PATCH,llvm-exegesis-mingw)) # mingw build
421
427
$(eval $(call LLVM_PATCH,llvm-test-plugin-mingw)) # mingw build
0 commit comments