提交 630b210b 编写于 作者: S Stefan Weil 提交者: Michael Tokarev

Fix build for less common build directories names

scripts/tracetool generates a C preprocessor macro from the name of the
build directory. Any characters which are possible in a directory name
but not allowed in a macro name must be substituted, otherwise builds
will fail.
Signed-off-by: NStefan Weil <sw@weilnetz.de>
Signed-off-by: NMichael Tokarev <mjt@tls.msk.ru>
上级 814bb12a
......@@ -70,7 +70,7 @@ def make_group_name(filename):
if dirname == "":
return "common"
return re.sub(r"/|-", "_", dirname)
return re.sub(r"[^A-Za-z0-9]", "_", dirname)
def main(args):
global _SCRIPT
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册