RESOLVED FIXED 233821
[libpas] make build.sh, test.sh, build_and_test.sh, and clean.sh work on Linux
https://bugs.webkit.org/show_bug.cgi?id=233821
Summary [libpas] make build.sh, test.sh, build_and_test.sh, and clean.sh work on Linux
Filip Pizlo
Reported 2021-12-03 09:37:12 PST
...
Attachments
WIP patch (2.11 KB, patch)
2021-12-05 01:37 PST, Zan Dobersek
no flags
Patch (4.62 KB, patch)
2021-12-06 00:37 PST, Zan Dobersek
no flags
Patch (4.58 KB, patch)
2021-12-06 23:24 PST, Zan Dobersek
no flags
Zan Dobersek
Comment 1 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.
Zan Dobersek
Comment 2 2021-12-06 00:37:41 PST
Filip Pizlo
Comment 3 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?
Zan Dobersek
Comment 4 2021-12-06 22:48:36 PST
I see. "cmake" as an SDK makes sense, and other variants can default to build_variant_xcodebuild.
Zan Dobersek
Comment 5 2021-12-06 23:24:03 PST
Radar WebKit Bug Importer
Comment 6 2021-12-10 09:38:20 PST
Yusuke Suzuki
Comment 7 2021-12-12 23:11:43 PST
Comment on attachment 446128 [details] Patch r=me
EWS
Comment 8 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].
Yusuke Suzuki
Comment 9 2021-12-14 01:03:12 PST
Note You need to log in before you can comment on or make changes to this bug.