Mercurial > vanilla
comparison Templates/cmake.sh @ 389:65eac7e33a2a
templates: use clang by default
author | David Demelier <markand@malikania.fr> |
---|---|
date | Tue, 02 Apr 2019 20:00:00 +0200 |
parents | 7b000befead5 |
children | 030ebf8e0a69 |
comparison
equal
deleted
inserted
replaced
388:d200ec45c513 | 389:65eac7e33a2a |
---|---|
22 PKGSUMMARY="short summary" | 22 PKGSUMMARY="short summary" |
23 PKGDOWNLOAD="http://example.org/$PKGNAME-$PKGVERSION.tar.xz" | 23 PKGDOWNLOAD="http://example.org/$PKGNAME-$PKGVERSION.tar.xz" |
24 PKGDEPENDS="dev/cmake:build" | 24 PKGDEPENDS="dev/cmake:build" |
25 # PKGOPTIONS="FOO BAR BAZ" | 25 # PKGOPTIONS="FOO BAR BAZ" |
26 | 26 |
27 : ${CC:=gcc} | 27 : ${CC:=clang} |
28 : ${CFLAGS:=-O2} | 28 : ${CFLAGS:=-O2} |
29 : ${CXX:=g++} | 29 : ${CXX:=clang++} |
30 : ${CXXFLAGS:=-O2} | 30 : ${CXXFLAGS:=-O2} |
31 | 31 |
32 build() | 32 build() |
33 { | 33 { |
34 rm -rf $PKGNAME-$PKGVERSION | 34 rm -rf $PKGNAME-$PKGVERSION |