[scripts] Fix for missing path seperator in errno.h
Make sure to add a path seperator after the root in codegen.arch_includes.
This commit is contained in:
@@ -5,10 +5,15 @@ supported_architectures = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
def arch_includes(header, root=""):
|
def arch_includes(header, root=""):
|
||||||
|
from pathlib import Path
|
||||||
|
root = Path(root)
|
||||||
|
header = Path(header)
|
||||||
|
|
||||||
prefix = "if"
|
prefix = "if"
|
||||||
for arch, define in supported_architectures.items():
|
for arch, define in supported_architectures.items():
|
||||||
|
path = root / "arch" / arch / header
|
||||||
cog.outl(f"#{prefix} defined({define})")
|
cog.outl(f"#{prefix} defined({define})")
|
||||||
cog.outl(f"#include <{root}arch/{arch}/{header}>")
|
cog.outl(f"#include <{path}>")
|
||||||
prefix = "elif"
|
prefix = "elif"
|
||||||
cog.outl("#else")
|
cog.outl("#else")
|
||||||
cog.outl('#error "Unsupported platform"')
|
cog.outl('#error "Unsupported platform"')
|
||||||
|
|||||||
Reference in New Issue
Block a user