X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=make%2Funit-cc.pl;h=77f97a3f2183d0b3c2f917eeb28652b25478da20;hb=00660293338f6a78278e52d05f6cf9a7ef9acc64;hp=5b0c50021406af4112bf54ce67f145174430ba6d;hpb=e244cb2c63b1ac1d85bdbb4691f7b1bd940ae804;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/make/unit-cc.pl b/make/unit-cc.pl index 5b0c50021..77f97a3f2 100755 --- a/make/unit-cc.pl +++ b/make/unit-cc.pl @@ -99,7 +99,7 @@ sub do_compile { if ($do_compile) { $flags = $ENV{CORECXXFLAGS} . ' ' . get_property($file, 'CompileFlags'); - if ($file =~ m#(?:^|/)((?:m|cmd)_[^/. ]+)(?:\.cpp|/.*\.cpp)$#) { + if ($file =~ m#(?:^|/)((?:m|core)_[^/. ]+)(?:\.cpp|/.*\.cpp)$#) { $flags .= ' -DMODNAME=\\"'.$1.'\\"'; } } else {