Open
Description
Thre are some declarations of build mode in the setup_env.py
scritpt.
Hence, I suggest adding the following code in it.
Additional argument
Target:
Line 205
in
caf17ec
Line 205 in caf17ec
parser.add_argument("--build-mode", type=str, choices=["Release", "Debug"], default="Debug", help="Build mode of source")
Compiler extra debug args
COMPILER_EXTRA_DEBUG_ARGS = {
"arm64": ["-DBITNET_ARM_TL1=ON", "-DCMAKE_BUILD_TYPE=Debug"],
"x86_64": ["-DBITNET_X86_TL2=ON", "-DCMAKE_BUILD_TYPE=Debug"]
}
Additional build process
Target
Line 184 in caf17ec
if args.build-mode == "Release":
run_command(["cmake", "-B", "build", *COMPILER_EXTRA_ARGS[arch], *OS_EXTRA_ARGS.get(platform.system(), [])], log_step="generate_build_files")
run_command(["cmake", "--build", "build", "--config", "Release"], log_step="compile")
else:
run_command(["cmake", "-B", "build", *COMPILER_EXTRA_DEBUG_ARGS[arch], *OS_EXTRA_ARGS.get(platform.system(), [])], log_step="generate_build_files")
run_command(["cmake", "--build", "build", "--config", "Debug"], log_step="compile")
Metadata
Metadata
Assignees
Labels
No labels