|
| | compile_cpp.parser = argparse.ArgumentParser(formatter_class=argparse.ArgumentDefaultsHelpFormatter) |
| | compile_cpp._ = parser.add_argument("files", action="store", nargs="*", help="the source file(s) to compile") |
| | compile_cpp.args = Args(parser.parse_args(args=None if len(sys.argv) > 1 else ["--help"])) |
| | compile_cpp.ANSI_INFO = ANSI.fg_bright_blue |
| | compile_cpp.ANSI_ERROR = ANSI.fg_bright_red |
| | compile_cpp.ANSI_SUCCESS = ANSI.fg_bright_green |
| | compile_cpp.ANSI_SEPARATOR = ANSI.fg_bright_yellow |
| | compile_cpp.ANSI_TRY_ALL = ANSI.fg_bright_magenta |
| bool | compile_cpp.no_color = "" |
| list | compile_cpp.source_paths = [pathlib.Path(file) for file in args.files] |
| list | compile_cpp.child_args = [arg for arg in sys.argv[1:] if arg not in ("-y", "--try-all")] |
| list | compile_cpp.compilers = [] |
| list | compile_cpp.standards = ["c++17", "c++20", "c++23"] |
| pathlib | compile_cpp.workspace_path = pathlib.Path(__file__).parent.parent.resolve() |
| float | compile_cpp.compile_start = time.perf_counter() |
| list | compile_cpp.warnings_as_errors = "cl" else ["-f-Werror"] |
| list | compile_cpp.command |
| | compile_cpp.compile_result |
| str | compile_cpp.compiler = "" |
| pathlib | compile_cpp.vs_path = find_vs_path() |
| list | compile_cpp.defines = args.define[:] |
| list | compile_cpp.deps = args.deps[:] |
| bool | compile_cpp.disable_exceptions = "true" |
| list | compile_cpp.flags = args.flag[:] |
| list | compile_cpp.includes = args.include[:] |
| dict | compile_cpp.modules = {name: files.split(",") for module in args.module for name, files in (module.split("="),)} |
| str | compile_cpp.output = args.output |
| list | compile_cpp.pass_args = args.pass_args[:] |
| str | compile_cpp.std_module = args.std_module |
| pathlib | compile_cpp.compile_yaml = pathlib.Path.cwd() / "compile_cpp.yaml" |
| dict | compile_cpp.raw_config = yaml.safe_load(file) or {} |
| | compile_cpp.compile_config = cast("dict[str, Any]", raw_config) |
| pathlib | compile_cpp.binary_path = None |
| pathlib | compile_cpp.build_folder .Path |
| bool | compile_cpp.auto_binary = False |
| tuple | compile_cpp.output_path = (pathlib.Path.cwd() / output).resolve() |
| | compile_cpp.exist_ok |
| | compile_cpp.True |
| | compile_cpp.parents |
| bool | compile_cpp.use_std_module = not (std_module is None or std_module == "disable" or args.std != "c++23") |
| str | compile_cpp.gcc_std_path = "bits/std.cc" |
| bool | compile_cpp.success = False |
| pathlib | compile_cpp.vc_version_path = vs_path / "VC" / "Auxiliary" / "Build" / "Microsoft.VCToolsVersion.default.txt" |
| | compile_cpp.encoding |
| str | compile_cpp.vc_version = vc_version_file.read().strip() |
| pathlib | compile_cpp.vc_tools_path = vs_path / "VC" / "Tools" / "MSVC" / vc_version |
| str | compile_cpp.clang_path = shutil.which("clang++") |
| pathlib | compile_cpp.std_path = pathlib.Path(clang_path).parent.parent / "share" / "libc++" / "v1" / "std.cppm" |
| str | compile_cpp.llvm_std_path = get_llvm_std_module("/usr/local/Cellar/llvm") |
| str | compile_cpp.module_extension = "" |
| str | compile_cpp.short_compiler = "g++" else "msvc" |
| str | compile_cpp.suffix = f"{args.type}-{short_compiler}-cpp{args.std[-2:]}" |
| str | compile_cpp.extension = "Windows" else "" |
| str | compile_cpp.module_indicator = "module_" if args.as_module else "" |
| str | compile_cpp.binary_name = f"{source_paths[0].stem}_{module_indicator}{suffix}{extension}" |
| bool | compile_cpp.recompiled_modules = False |
| dict | compile_cpp.module_paths = {name: [(pathlib.Path.cwd() / file).resolve() for file in files] for name, files in modules.items()} |
| dict | compile_cpp.module_output_paths = {name: build_folder / f"{path[0].stem}_module_{suffix}{module_extension}" for name, path in module_paths.items()} |
| bool | compile_cpp.need_recompile = True |
| list | compile_cpp.deps_paths = [(pathlib.Path.cwd() / file).resolve() for file in deps] |
| float | compile_cpp.binary_mod = binary_path.stat().st_mtime |
| list | compile_cpp.include_paths = [(pathlib.Path.cwd() / folder).resolve() for folder in includes] |
| str | compile_cpp.compiler_path | None |
| pathlib | compile_cpp.vs_pwsh_path = vs_path / "Common7" / "Tools" / "Launch-VsDevShell.ps1" |
| int | compile_cpp.max_length = 16 |
| float | compile_cpp.run_start = time.perf_counter() |
| subprocess | compile_cpp.run_result |