Browse Source

Emit clear error when using --layout=system with --build-type=complete.

[SVN r55733]
Vladimir Prus 16 năm trước cách đây
mục cha
commit
dbbf8fa0cf
1 tập tin đã thay đổi với 11 bổ sung0 xóa
  1. 11 0
      Jamroot

+ 11 - 0
Jamroot

@@ -295,6 +295,17 @@ if ! $(layout)
 }
 layout-$(layout) = true ;
 
+if $(layout) = system && $(build-type) = complete
+{
+    ECHO "error: Cannot use --layout=system with --build-type complete." ;
+    ECHO "error: Please used either --layout=versioned or --layout=tagged " ;
+    ECHO "error: if you wish to build multiple variants." ;
+    if ! [ modules.peek : NT ] 
+    {        
+        ECHO "error: Note that --layout=system is default on Unix starting with Boost 1.40." ;
+    }    
+    EXIT ;
+}
 
 # Possible stage only location.
 local stage-locate = [ MATCH "^--stagedir=(.*)" : [ modules.peek : ARGV ] ] ;

粤ICP备19079148号