[Python-checkins] devguide: Add a setup section listing clang-specific flags to set when building.

brett.cannon python-checkins at python.org
Sun Jan 23 23:21:31 CET 2011


brett.cannon pushed fac4ee51bdad to devguide:

http://hg.python.org/devguide/rev/fac4ee51bdad
changeset:   191:fac4ee51bdad
tag:         tip
user:        Brett Cannon <brett at python.org>
date:        Sun Jan 23 14:21:25 2011 -0800
summary:
  Add a setup section listing clang-specific flags to set when building.

files:
  setup.rst

diff --git a/setup.rst b/setup.rst
--- a/setup.rst
+++ b/setup.rst
@@ -123,6 +123,19 @@
 .. _issue tracker: http://bugs.python.org
 
 
+Clang
+"""""
+
+If you are using clang_ to build CPython, some flags you might want to set to
+quiet some standard warnings which are specifically superfluous to CPython are
+``-Wno-unused-value -Wno-empty-body -Qunused-arguments``. You can set your
+``CFLAGS`` environment variable to these flags when running ``configure``.
+
+If you are using LLVM 2.8, also use the ``-no-integrated-as`` flag in order to
+build the :py:mod:`ctypes` module (without the flag the rest of CPython will
+still build properly).
+
+
 Windows
 '''''''
 

--
Repository URL: http://hg.python.org/devguide


More information about the Python-checkins mailing list