Generates a .def file for the absl component build on the specified CPU.
(cpu, is_debug, use_cxx23, extra_gn_args=[], suffix=None)
| 129 | |
| 130 | |
| 131 | def _GenerateDefFile(cpu, is_debug, use_cxx23, extra_gn_args=[], suffix=None): |
| 132 | """Generates a .def file for the absl component build on the specified CPU.""" |
| 133 | cwd = os.getcwd() |
| 134 | with tempfile.TemporaryDirectory(dir=os.path.join(cwd, 'out')) as out_dir: |
| 135 | _GenerateDefFileBuild(cpu, is_debug, use_cxx23, extra_gn_args, suffix, out_dir, cwd) |
| 136 | |
| 137 | # Hack, it looks like there is a race in the directory cleanup. |
| 138 | time.sleep(10) |
| 139 | |
| 140 | |
| 141 | if __name__ == '__main__': |
no test coverage detected