Ver Fonte

Implement --python-buildid.

Fixes #3544.
Patch from Gaudenz Steinlin.


[SVN r59987]
Vladimir Prus há 16 anos atrás
pai
commit
0715213024
3 ficheiros alterados com 14 adições e 2 exclusões
  1. 12 0
      Jamroot
  2. 1 1
      libs/mpi
  3. 1 1
      libs/python

+ 12 - 0
Jamroot

@@ -90,6 +90,12 @@
 #   --buildid=ID            Adds the specified ID to the name of built
 #                           libraries.  The default is to not add anything.
 #
+#   --python-buildid=ID     Adds the specified ID to the name of built
+#                           libraries that depend on Python.  The default 
+#                           is to not add anything. This ID is added in 
+#                           addition t --buildid.
+#
+#
 #   --help                  This message.
 #
 #   --with-<library>        Build and install the specified <library>
@@ -352,6 +358,12 @@ if $(build-id)
     constant BUILD_ID : [ regex.replace $(build-id) "[*\\/:.\"\' ]" "_" ] ;
 }
 
+# Python build id (only for Python libraries)
+local python-id = [ MATCH "^--python-buildid=(.*)" : [ modules.peek : ARGV ] ] ;
+if $(python-id)
+{
+    constant PYTHON_ID : [ regex.replace $(python-id) "[*\\/:.\"\']" "_" ] ;
+}
 
 # This rule is called by Boost.Build to determine the name of target. We use it
 # to encode the build variant, compiler name and boost version in the target

+ 1 - 1
libs/mpi

@@ -1 +1 @@
-Subproject commit 27893126b68141ebf9dff11e8a69ac75f656ccc1
+Subproject commit 2d5b14565f7ec6b36ed8637887181736681555a6

+ 1 - 1
libs/python

@@ -1 +1 @@
-Subproject commit 16607303202acb00efba444b13a9f4e3c0b060c6
+Subproject commit 9398a63250133e1eaa6616173f16f465ff875a39

粤ICP备19079148号