--- tools/gn/build/gen.py.orig 2026-10-18 13:29:39 UTC +++ tools/gn/build/gen.py @@ -91,6 +91,12 @@ class Platform(object): def is_solaris(self): return self._platform == 'solaris' + def is_openbsd(self): + return self._platform == 'openbsd' + + def is_freebsd(self): + return self._platform == 'freebsd' + def is_posix(self): return self._platform in ['linux', 'freebsd', 'darwin', 'aix', 'openbsd', 'haiku', 'solaris', 'msys', 'netbsd', 'serenity'] @@ -356,7 +362,7 @@ def WriteGenericNinja(path, static_libraries, executab 'linux': 'build_linux.ninja.template', 'freebsd': 'build_linux.ninja.template', 'aix': 'build_aix.ninja.template', - 'openbsd': 'build_openbsd.ninja.template', + 'openbsd': 'build_linux.ninja.template', 'haiku': 'build_haiku.ninja.template', 'solaris': 'build_linux.ninja.template', 'netbsd': 'build_linux.ninja.template',