]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/tools/build/src/build/type.jam
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / tools / build / src / build / type.jam
index 419656df0aad5b2fb25715e80d8d493755943e1b..365aaf8d19aa651fb17ed328331b8bd4dd6dae2e 100644 (file)
@@ -1,7 +1,7 @@
 # Copyright 2002, 2003 Dave Abrahams
 # Copyright 2002, 2003, 2004, 2005, 2006 Vladimir Prus
 # Distributed under the Boost Software License, Version 1.0.
-# (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
+# (See accompanying file LICENSE.txt or https://www.bfgroup.xyz/b2/LICENSE.txt)
 
 #  Deals with target type declaration and defines target class which supports
 #  typed targets.
@@ -50,6 +50,12 @@ rule register ( type : suffixes * : base-type ? )
         errors.error "Type $(type) is already registered." ;
     }
 
+    if $(base-type) && ! $(base-type) in $(.types)
+    {
+        import errors ;
+        errors.error "Type $(base-type) is not registered." ;
+    }
+
     {
         .types += $(type) ;
         .base.$(type) = $(base-type) ;