Преглед изворни кода

Skip link=shared, runtime_link=static instead of aborting the build (#145)

Peter Dimov пре 8 година
родитељ
комит
864b3ef6e7
1 измењених фајлова са 9 додато и 4 уклоњено
  1. 9 4
      Jamroot

+ 9 - 4
Jamroot

@@ -197,10 +197,15 @@ rule handle-static-runtime ( properties * )
     if <link>shared in $(properties) && <runtime-link>static in $(properties) &&
         ! ( <toolset>cw in $(properties) )
     {
-        ECHO "error: link=shared together with runtime-link=static is not allowed" ;
-        ECHO "error: such property combination is either impossible " ;
-        ECHO "error: or too dangerious to be of any use" ;
-        EXIT ;
+        if ! $(.shared-static-warning-emitted)
+        {
+            ECHO "warning: skipping configuration link=shared, runtime-link=static" ;
+            ECHO "warning: this combination is either impossible or too dangerous" ;
+            ECHO "warning: to be of any use" ;
+            .shared-static-warning-emitted = 1 ;
+        }
+
+        return <build>no ;
     }
 }
 

粤ICP备19079148号