Bug 240159 - [WebGPU] Fix build on downlevel OSes in Apple's build system
Summary: [WebGPU] Fix build on downlevel OSes in Apple's build system
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Myles C. Maxfield
URL:
Keywords: InRadar
: 239923 (view as bug list)
Depends on:
Blocks:
 
Reported: 2022-05-06 00:35 PDT by Myles C. Maxfield
Modified: 2022-05-06 17:50 PDT (History)
2 users (show)

See Also:


Attachments
Patch (13.80 KB, patch)
2022-05-06 00:38 PDT, Myles C. Maxfield
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Myles C. Maxfield 2022-05-06 00:35:14 PDT
[WebGPU] Fix build on downlevel OSes in Apple's build system
Comment 1 Myles C. Maxfield 2022-05-06 00:38:10 PDT
Created attachment 458938 [details]
Patch
Comment 2 Myles C. Maxfield 2022-05-06 00:38:13 PDT
<rdar://problem/92524485>
Comment 3 Myles C. Maxfield 2022-05-06 00:38:28 PDT
*** Bug 239923 has been marked as a duplicate of this bug. ***
Comment 4 Alexey Proskuryakov 2022-05-06 08:39:29 PDT
Comment on attachment 458938 [details]
Patch

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

> Source/WebGPU/Configurations/Base.xcconfig:27
> +#include? "<DEVELOPER_DIR>/AppleInternal/XcodeConfig/PlatformSupport.xcconfig"
>  #include "SDKVariant.xcconfig"
> +#include "WebKitTargetConditionals.xcconfig"

I see that for WebCore, these are in WebCore.xcconfig, not in Base.xcconfig. Is it possible to keep these projects similar, to reduce future confusion?
Comment 5 Myles C. Maxfield 2022-05-06 09:42:18 PDT
Comment on attachment 458938 [details]
Patch

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

>> Source/WebGPU/Configurations/Base.xcconfig:27
>> +#include "WebKitTargetConditionals.xcconfig"
> 
> I see that for WebCore, these are in WebCore.xcconfig, not in Base.xcconfig. Is it possible to keep these projects similar, to reduce future confusion?

Oh, I was following the model of JavaScriptCore, which has them in JavaScriptCore.xcconfig.
Comment 6 Alexey Proskuryakov 2022-05-06 10:06:49 PDT
JSC does indeed have in Base.xcconfig. Ok then!
Comment 7 EWS 2022-05-06 17:50:08 PDT
Committed r293937 (250383@main): <https://commits.webkit.org/250383@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 458938 [details].