Selaa lähdekoodia

squawk if attached to wrong DTOOL

David Rose 21 vuotta sitten
vanhempi
sitoutus
7117883a22
1 muutettua tiedostoa jossa 3 lisäystä ja 0 poistoa
  1. 3 0
      dtool/Package.pp

+ 3 - 0
dtool/Package.pp

@@ -40,6 +40,9 @@
   #if $[eq $[DTOOL],]
     #error You seem to be attached to some trees, but not DTOOL!
   #endif
+  #if $[ne $[canonical $[DTOOL]], $[canonical $[TOPDIR]]]
+    #error You are not attached to the right DTOOL!
+  #endif
 #else
   // Otherwise, if we are not attached, install in the standard place
   // (unless the user specifies otherwise).