Mentions légales du service

Skip to content
Snippets Groups Projects
Commit e5f73192 authored by TAVERNIER Vincent's avatar TAVERNIER Vincent
Browse files

Force use of Clang on legacy distributions

parent 331d2874
No related branches found
No related tags found
No related merge requests found
...@@ -13,6 +13,12 @@ ...@@ -13,6 +13,12 @@
# package maintainers to append LDFLAGS # package maintainers to append LDFLAGS
#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed #export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
export TRUSTY_BUILD=$(shell test $$(gcc -dumpversion | cut -d. -f1) -lt 5 && echo -n 1)
export CC=$(shell test -n "$(TRUSTY_BUILD)" && echo -n "/usr/bin/clang-3.9" || echo -n "$$CC")
export CXX=$(shell test -n "$(TRUSTY_BUILD)" && echo -n "/usr/bin/clang++-3.9" || echo -n "$$CXX")
export DEB_CXXFLAGS_MAINT_APPEND = $(shell test -n "$(TRUSTY_BUILD)" && echo -n '-std=c++14 -stdlib=libc++')
%: %:
dh $@ --buildsystem=cmake --parallel dh $@ --buildsystem=cmake --parallel
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment