Bug 1662608 - Set -fcrash-diagnostics-dir in build-clang.py r=froydnj CLOSED TREE

This will let us get reproducers for compiler self-host assertion failures.

Differential Revision: https://phabricator.services.mozilla.com/D89079
This commit is contained in:
David Major 2020-09-02 00:27:12 +00:00
Родитель 98deb161a2
Коммит 398ec52cef
1 изменённых файлов: 5 добавлений и 0 удалений

Просмотреть файл

@ -826,6 +826,11 @@ if __name__ == "__main__":
extra_ldflags = ["-Wl,-syslibroot,%s" % os.getenv("CROSS_SYSROOT"),
"-Wl,-dead_strip"]
upload_dir = os.getenv('UPLOAD_DIR')
if upload_dir:
extra_cflags2 += ['-fcrash-diagnostics-dir=%s' % upload_dir]
extra_cxxflags2 += ['-fcrash-diagnostics-dir=%s' % upload_dir]
build_one_stage(
[cc] + extra_cflags,
[cxx] + extra_cxxflags,