1
0

bytebeat_compiler.py: fix extra dots in paths

This commit is contained in:
Intel A80486DX2-66 2024-08-26 22:54:02 +03:00
parent 974f7eb53b
commit be5c7186ec
Signed by: 80486DX2-66
GPG Key ID: 83631EF27054609B

View File

@ -30,17 +30,16 @@ PATHS = {
"include_directory": "include"
}
# Add `.` directory before all paths for compilation
for key in ["src_dir", "bin_dir", "include_directory"]:
PATHS[key] = path_join(".", PATHS[key])
# Resolve paths
PATHS["template"] = path_join(PATHS["src_dir"], PATHS["template"])
PATHS["substitute_kept"] = path_join(PATHS["bin_dir"], PATHS["substitute"])
PATHS["output_kept"] = path_join(PATHS["bin_dir"], PATHS["output"])
PATHS["fwrite_le"] = path_join(PATHS["src_dir"], PATHS["fwrite_le"])
# Add `.` directory before all paths for compilation
for key in ["template", "substitute", "output", "fwrite_le",
"include_directory"]:
PATHS[key] = path_join(".", PATHS[key])
# Default parameters
DEFAULT_PARAMETERS = {
"CC": "cc",