llvm18/opt-viewer-Find-style-css-in-usr-share.patch
Aaron Puchert d908d9fcff - Update to version 18.1.8.
* Fix a regression from the 18.1.6 release, which could result in
    compiler crashes in the PPCMergeStringPool pass when compiling
    for PowerPC targets.
  * Fixes clang-format regressions (since 18.1.1) on breaking
    before a stream insertion operator (<<) when both operands are
    string literals.
  * Fixes a clang-format regression (since 17.0.6) on formatting
    goto labels in macro definitions.
- Rebase llvm-do-not-install-static-libraries.patch.

OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/llvm18?expand=0&rev=17
2024-06-30 18:04:58 +00:00

17 lines
672 B
Diff

Index: llvm-17.0.0rc1.src/tools/opt-viewer/opt-viewer.py
===================================================================
--- llvm-17.0.0rc1.src.orig/tools/opt-viewer/opt-viewer.py
+++ llvm-17.0.0rc1.src/tools/opt-viewer/opt-viewer.py
@@ -363,10 +363,7 @@
output_dir, should_display_hotness, max_hottest_remarks_on_index
).render(sorted_remarks)
- shutil.copy(
- os.path.join(os.path.dirname(os.path.realpath(__file__)), "style.css"),
- output_dir,
- )
+ shutil.copy("/usr/share/opt-viewer/style.css", output_dir)
_render_file_bound = functools.partial(
_render_file, source_dir, output_dir, context, no_highlight