Bug 223882 - [Flatpak SDK] Enable LLVM extension
Summary: [Flatpak SDK] Enable LLVM extension
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Philippe Normand
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-03-29 10:15 PDT by Philippe Normand
Modified: 2021-04-07 02:04 PDT (History)
2 users (show)

See Also:


Attachments
Patch (12.11 KB, patch)
2021-03-30 05:27 PDT, Philippe Normand
no flags Details | Formatted Diff | Diff
Patch (12.64 KB, patch)
2021-04-07 01:20 PDT, Philippe Normand
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Philippe Normand 2021-03-29 10:15:20 PDT
The clang shipped by default in the FDO SDK is not usable for ASan, UBSan (and I guess TSan) builds, but the Flatpak extension shipping LLVM11 allows this.
Comment 1 Philippe Normand 2021-03-30 05:27:27 PDT
Created attachment 424630 [details]
Patch
Comment 2 Adrian Perez 2021-04-05 03:32:17 PDT
Comment on attachment 424630 [details]
Patch

Patch LGTM with a couple of small nits :)

View in context: https://bugs.webkit.org/attachment.cgi?id=424630&action=review

> Tools/flatpak/flatpakutils.py:736
> +                building = os.path.basename(args[0]).startswith("build")

This check looks a bit brittle, but other than using “in ("build-webkit", "build-jsc")” to
check for a well-known list of possible build scripts, I don't really have a better idea 🤔️

> Tools/flatpak/flatpakutils.py:988
> +            clang_archive, clang_toolchaines = self.pack_toolchain(("clang", "clang++"), {"/usr/bin/clang++": "clang++",

Typo in variable name: clanf_toolchaines → clang_toolchains
Comment 3 Philippe Normand 2021-04-06 10:29:49 PDT
Comment on attachment 424630 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=424630&action=review

>> Tools/flatpak/flatpakutils.py:736
>> +                building = os.path.basename(args[0]).startswith("build")
> 
> This check looks a bit brittle, but other than using “in ("build-webkit", "build-jsc")” to
> check for a well-known list of possible build scripts, I don't really have a better idea 🤔️

There's a is_build_webkit() method already. I could add one for is_build_jsc() as well and then here `building = self.is_build_webkit() or self.is_build_jsc()` wdyt?
Comment 4 Adrian Perez 2021-04-06 14:23:24 PDT
(In reply to Philippe Normand from comment #3)
> Comment on attachment 424630 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=424630&action=review
> 
> >> Tools/flatpak/flatpakutils.py:736
> >> +                building = os.path.basename(args[0]).startswith("build")
> > 
> > This check looks a bit brittle, but other than using “in ("build-webkit", "build-jsc")” to
> > check for a well-known list of possible build scripts, I don't really have a better idea 🤔️
> 
> There's a is_build_webkit() method already. I could add one for
> is_build_jsc() as well and then here `building = self.is_build_webkit() or
> self.is_build_jsc()` wdyt?

This sounds perfect 👍️
Comment 5 Philippe Normand 2021-04-07 01:20:20 PDT
Created attachment 425363 [details]
Patch
Comment 6 EWS 2021-04-07 02:03:18 PDT
Committed r275595: <https://commits.webkit.org/r275595>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 425363 [details].
Comment 7 Radar WebKit Bug Importer 2021-04-07 02:04:34 PDT
<rdar://problem/76326393>