Bug 171864

Summary: [Win] Specify source file type when preprocessing IDL files
Product: WebKit Reporter: Don Olmstead <don.olmstead>
Component: Tools / TestsAssignee: Don Olmstead <don.olmstead>
Status: RESOLVED FIXED    
Severity: Normal CC: achristensen, bfulgham, commit-queue, lforschler, pvollan
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 171618    
Attachments:
Description Flags
Patch none

Description Don Olmstead 2017-05-09 10:37:53 PDT
The source file type, https://msdn.microsoft.com/en-us/library/032xwy55.aspx, should be specified to the preprocessor when running IDL generation.
Comment 1 Don Olmstead 2017-05-09 16:27:25 PDT
Created attachment 309559 [details]
Patch

Adds /FP to the list of CODE_GENERATOR_PREPROCESSOR_ARGUMENTS. This is equivalent to the -x cpp used in GCC/Clang.
Comment 2 Alex Christensen 2017-05-09 16:55:29 PDT
I have a bot building with VS2017 now and it's fine without this.  What does this improve or fix?
Comment 3 Don Olmstead 2017-05-09 17:01:41 PDT
(In reply to Alex Christensen from comment #2)
> I have a bot building with VS2017 now and it's fine without this.  What does
> this improve or fix?

I'm trying to get things building with clang-cl.

With cl the flag isn't explicitly needed for it to function. With clang-cl if the flag isn't there then it returns nothing to STDOUT and the build fails.
Comment 4 WebKit Commit Bot 2017-05-10 07:31:33 PDT
Comment on attachment 309559 [details]
Patch

Clearing flags on attachment: 309559

Committed r216583: <http://trac.webkit.org/changeset/216583>
Comment 5 WebKit Commit Bot 2017-05-10 07:31:34 PDT
All reviewed patches have been landed.  Closing bug.