Files
llvm21/opt-viewer-Find-style-css-in-usr-share.patch
Aaron Puchert 5ab16e138d - Initial release based on version 21.1.0.
* For details, see the release notes:
    - https://releases.llvm.org/21.1.0/docs/ReleaseNotes.html
    - https://releases.llvm.org/21.1.0/tools/clang/docs/ReleaseNotes.html
    - https://releases.llvm.org/21.1.0/tools/clang/tools/extra/docs/ReleaseNotes.html
    - https://releases.llvm.org/21.1.0/projects/libcxx/docs/ReleaseNotes.html
    - https://releases.llvm.org/21.1.0/tools/lld/docs/ReleaseNotes.html
  * The LLVM tool llvm-ml is now also available as llvm-ml64.
  * Clang tools amdgpu-arch and nvptx-arch have been unified into a
    single tool offload-arch.
- Require libxml2 not only for lldb, because it is (optionally)
  also used in LLVM and Clang.
- Rebase patches:
  * assume-opensuse.patch
  * link-clang-shared.patch
  * llvm-do-not-install-static-libraries.patch
  * llvm-fix-cov-test-i586.patch
  * llvm-normally-versioned-libllvm.patch
- Remove obsolete patches:
  * reproducible.patch
- Add compiler-rt-fix-relative-path.patch to fix relative path in
  different directory layout.

OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/llvm21?expand=0&rev=1
2025-09-08 16:07:45 +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