Skip to content

Targets that add compiler options must run before FixupCLCompileOptions - #742

Merged
Kenny Kerr (kennykerr) merged 4 commits into
microsoft:masterfrom
asklar:FixupCLCompileOptions
Sep 15, 2020
Merged

Targets that add compiler options must run before FixupCLCompileOptions#742
Kenny Kerr (kennykerr) merged 4 commits into
microsoft:masterfrom
asklar:FixupCLCompileOptions

Conversation

@asklar

Copy link
Copy Markdown
Member

Fixes #741
This is hit when forcing proc count in msbuild since /MP should also imply /FS (force synchronous writes) but that enforcement is done by FixupCLCompileOptions after all other ComputeCompileInputsTargets runs. If something runs after the fix up has already happened, we break the build (Error C1041: cannot open program database)

@asklar

Copy link
Copy Markdown
Member Author

CC Kenny Kerr (@kennykerr). Looks like the C++ for WinRT Xlang internal Build task is stuck, mind kicking it?

@kennykerr

Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines

Copy link
Copy Markdown
No pipelines are associated with this pull request.

@kennykerr

Copy link
Copy Markdown
Collaborator

I just need Scott Jones (@Scottj1s) or Johan Laanstra (@jlaanstra) to review the msbuild goo.

@asklar

Copy link
Copy Markdown
Member Author

CC Yue (Felix) Huang (@yuehuang010) Olga Arkhipova (@olgaark) to double check me

@asklar
Alexander Sklar (asklar) marked this pull request as draft September 14, 2020 04:49
@asklar
Alexander Sklar (asklar) marked this pull request as ready for review September 14, 2020 07:39
@kennykerr

Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines

Copy link
Copy Markdown
No pipelines are associated with this pull request.

@kennykerr
Kenny Kerr (kennykerr) merged commit 2a0a7fa into microsoft:master Sep 15, 2020
@jlaanstra

Copy link
Copy Markdown
Contributor

This change breaks the razzle build with error MSB8027: Two or more files with the name of XamlMetaDataProvider.cpp will produce outputs to the same location. This can lead to an incorrect build result.. Need to revert.

@jlaanstra

Copy link
Copy Markdown
Contributor

Turns out this is actually a bug in razzle. I'll send mail with details since this is a problem with an internal tool.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Build breaks when adding to ComputeCompileInputsTargets because FixupCLCompileOptions doesn't run at the end

3 participants