Bug 233821 - [libpas] make build.sh, test.sh, build_and_test.sh, and clean.sh work on Linux
Summary: [libpas] make build.sh, test.sh, build_and_test.sh, and clean.sh work on Linux
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: bmalloc (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Normal
Assignee: Zan Dobersek
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-12-03 09:37 PST by Filip Pizlo
Modified: 2021-12-14 01:03 PST (History)
4 users (show)

See Also:


Attachments
WIP patch (2.11 KB, patch)
2021-12-05 01:37 PST, Zan Dobersek
no flags Details | Formatted Diff | Diff
Patch (4.62 KB, patch)
2021-12-06 00:37 PST, Zan Dobersek
no flags Details | Formatted Diff | Diff
Patch (4.58 KB, patch)
2021-12-06 23:24 PST, Zan Dobersek
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Filip Pizlo 2021-12-03 09:37:12 PST
...
Comment 1 Zan Dobersek 2021-12-05 01:37:47 PST
Created attachment 445984 [details]
WIP patch

This integrates CMake invocation into the build.sh script. The patch just needs some minor refinements before it's reviewable. Test invocation works fine as it's currently done.

This covers invoking the build. There's still different build problems like missing includes or Darwin-specific code.
Comment 2 Zan Dobersek 2021-12-06 00:37:41 PST
Created attachment 446008 [details]
Patch
Comment 3 Filip Pizlo 2021-12-06 19:36:39 PST
Comment on attachment 446008 [details]
Patch

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

Thank you for doing this!  I just think that build_variant, in its current form, would break us.

> Source/bmalloc/libpas/build.sh:98
> +    case $sdk in
> +        macosx.internal)
> +            build_variant_xcodebuild $@
> +            ;;
> +    esac

This isn't adequate for us - we can have $sdk be:

- macosx
- macosx.internal
- iphoneos
- iphoneos.internal
- maybe other things too, but definitely not Linux ;-)

Also, the build_variant_linux seems like it would probably work on other non-Xcode systems, so "Linux" might be a bad name.

What if you set $sdk to "cmake" instead of "linux" and this was just "case $sdk in cmake) build_variant_cmake ;; *) build_variant_xcodebuild esac" or something like that?
Comment 4 Zan Dobersek 2021-12-06 22:48:36 PST
I see. "cmake" as an SDK makes sense, and other variants can default to build_variant_xcodebuild.
Comment 5 Zan Dobersek 2021-12-06 23:24:03 PST
Created attachment 446128 [details]
Patch
Comment 6 Radar WebKit Bug Importer 2021-12-10 09:38:20 PST
<rdar://problem/86325940>
Comment 7 Yusuke Suzuki 2021-12-12 23:11:43 PST
Comment on attachment 446128 [details]
Patch

r=me
Comment 8 EWS 2021-12-12 23:17:13 PST
Committed r286934 (245160@main): <https://commits.webkit.org/245160@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 446128 [details].
Comment 9 Yusuke Suzuki 2021-12-14 01:03:12 PST
Committed r287016 (245221@trunk): <https://commits.webkit.org/245221@trunk>