Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 31 Oct 2011 00:10:57 +0100
From:      Dominic Fandrey <kamikaze@bsdforen.de>
To:        freebsd-ports@freebsd.org
Subject:   bsd.clang.mk
Message-ID:  <4EADD981.40502@bsdforen.de>

next in thread | raw e-mail | index | archive | help
I just submitted ports/162178 (http://www.freebsd.org/cgi/query-pr.cgi?pr=162178),
it adds a bsd.clang.mk that allows port maintainers and users to
tune the use of Clang/LLVM with the ports tree.

Maintainers can:
- Mark ports as CLANG_SAFE
- Mark ports as CLANG_UNSAFE
- Use CLANG_PREFERRED (if available, clang will be used instead of cc)
- Use USE_CLANG (like CLANG_PREFERRED, but introduces a build dependency
  if clang originates from the ports tree)

Users can:
- PREFER_CLANG, which takes effect if a port is CLANG_SAFE
- FORCE_CLANG, which takes effect unless a port is CLANG_UNSAFE

Obviously this needs testers. The maintainer side is more complex,
because you can do things like defining CLANG_UNSAFE=2.9- and CLANG_SAFE=3.
It's also possible to define version ranges like USE_CLANG=2.9-3 or
specify several ranges like CLANG_UNSAFE= 2.9- 3.4+.

-- 
A: Because it fouls the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail? 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4EADD981.40502>