mirror of
https://git.proxmox.com/git/llvm-toolchain
synced 2025-07-22 22:18:23 +00:00
Build using thinlto on non stretch, xenial and trusty (fails with some undef symbols)
This commit is contained in:
parent
7b48c07838
commit
773d687485
2
debian/changelog
vendored
2
debian/changelog
vendored
@ -25,6 +25,8 @@ llvm-toolchain-snapshot (1:9~svn358688-1~exp1) experimental; urgency=medium
|
|||||||
CheckerDependencyHandlingAnalyzerPlugin.so,
|
CheckerDependencyHandlingAnalyzerPlugin.so,
|
||||||
CheckerOptionHandlingAnalyzerPlugin.so}
|
CheckerOptionHandlingAnalyzerPlugin.so}
|
||||||
in libclang-9-dev
|
in libclang-9-dev
|
||||||
|
* Build using thinlto on non stretch, xenial and trusty
|
||||||
|
(fails with some undef symbols)
|
||||||
|
|
||||||
-- Sylvestre Ledru <sylvestre@debian.org> Thu, 18 Apr 2019 19:05:45 +0200
|
-- Sylvestre Ledru <sylvestre@debian.org> Thu, 18 Apr 2019 19:05:45 +0200
|
||||||
|
|
||||||
|
7
debian/rules
vendored
7
debian/rules
vendored
@ -26,6 +26,8 @@ ifneq (,$(filter parallel=%,$(subst $(COMMA), ,$(DEB_BUILD_OPTIONS))))
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
VENDOR=$(shell lsb_release -is)
|
VENDOR=$(shell lsb_release -is)
|
||||||
|
DISTRO=$(shell lsb_release -sc)
|
||||||
|
|
||||||
DH_VERSION := $(shell dpkg -s debhelper | grep '^Version' | awk '{print $$2}')
|
DH_VERSION := $(shell dpkg -s debhelper | grep '^Version' | awk '{print $$2}')
|
||||||
|
|
||||||
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
|
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
|
||||||
@ -220,7 +222,10 @@ ifneq (,$(filter $(DEB_HOST_ARCH_OS),linux))
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
# Use thinlto for the link phase
|
# Use thinlto for the link phase
|
||||||
#CMAKE_EXTRA += -DLLVM_ENABLE_LTO="Thin"
|
if test ! "$DISTRO" = "stretch" -a ! "$DISTRO" = "xenial" -a ! "$DISTRO" = "trusty"; then
|
||||||
|
# Don't enable for old distros
|
||||||
|
CMAKE_EXTRA += -DLLVM_ENABLE_LTO="Thin"
|
||||||
|
endif
|
||||||
|
|
||||||
DH_OPTIONS=
|
DH_OPTIONS=
|
||||||
OCAML_ENABLE= no
|
OCAML_ENABLE= no
|
||||||
|
Loading…
Reference in New Issue
Block a user