Browse Source

New bootstrap commits that work with FreeBSD

default_compile_flags
vector-of-bool 4 years ago
parent
commit
ea736cff8a
2 changed files with 27 additions and 5 deletions
  1. +5
    -5
      tools/bootstrap.py
  2. +22
    -0
      tools/freebsd-gcc-9.jsonc

+ 5
- 5
tools/bootstrap.py View File





BOOTSTRAP_PHASES = [ BOOTSTRAP_PHASES = [
BootstrapPhase('bootstrap-p1', 'g++-8', 'cl.exe'),
BootstrapPhase('bootstrap-p4', 'g++-8', 'cl.exe'),
BootstrapPhase('bootstrap-p5.1', 'g++-9', 'cl.exe'),
BootstrapPhase('bootstrap-p1.1', 'g++8', 'cl.exe'),
BootstrapPhase('bootstrap-p4.2', 'g++8', 'cl.exe'),
BootstrapPhase('bootstrap-p5.2', 'g++9', 'cl.exe'),
] ]


HERE = Path(__file__).parent.absolute() HERE = Path(__file__).parent.absolute()
return _pull_executable(bts_dir) return _pull_executable(bts_dir)




def main(argv: Sequence[str]) -> int:
def main() -> int:
for idx, phase in enumerate(BOOTSTRAP_PHASES): for idx, phase in enumerate(BOOTSTRAP_PHASES):
print(f'Bootstrap phase [{idx+1}/{len(BOOTSTRAP_PHASES)}]') print(f'Bootstrap phase [{idx+1}/{len(BOOTSTRAP_PHASES)}]')
exe = _run_boot_phase(phase) exe = _run_boot_phase(phase)




if __name__ == "__main__": if __name__ == "__main__":
sys.exit(main(sys.argv[1:]))
sys.exit(main())

+ 22
- 0
tools/freebsd-gcc-9.jsonc View File

{
"$schema": "../res/toolchain-schema.json",
"compiler_id": "gnu",
"c_compiler": "gcc9",
"cxx_compiler": "g++9",
// "cxx_version": "c++17",
"flags": [
"-DSPDLOG_COMPILED_LIB", // Required to use a compiled spdlog
"-Werror=return-type",
],
"cxx_flags": [
"-fconcepts",
"-std=c++2a",
],
"link_flags": [
"-static-libgcc",
"-static-libstdc++",
],
// "debug": true,
"optimize": true,
"compiler_launcher": "ccache"
}

Loading…
Cancel
Save