We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e8c9014 commit 812a3e4Copy full SHA for 812a3e4
other/haxelib/Run.hx
@@ -67,7 +67,10 @@ class Build {
67
if( !sys.FileSystem.exists(srcDir) )
68
throw "Failed to find make template '"+tpl+"'";
69
}
70
-
+ if( StringTools.contains(sys.FileSystem.absolutePath(targetDir), sys.FileSystem.absolutePath(srcDir)) ) {
71
+ throw "Template "+tpl+" contains "+targetDir+", can cause recursive generation";
72
+ }
73
+
74
var allFiles = config.files.copy();
75
for( f in config.files )
76
if( StringTools.endsWith(f,".c") ) {
0 commit comments