Skip to content

Conversation

@KevinRansom
Copy link
Contributor

@KevinRansom KevinRansom commented Aug 5, 2020

During the build we use FSLEX and FSYACC to create files included in the FSharp.Compiler.Private.dll

image

We build this dll several times, net472, netcoreapp3.1 and proto. The existing build writes all of the files to the same location.

This fix writes the generated files to the intermediateoutputpath/targetframework directory. To ensure that each build is independent.

@cartermp cartermp requested review from brettfo and removed request for brettfo August 5, 2020 14:26
@abelbraaksma
Copy link
Contributor

Is this the opportune moment to also fix that fslex/yacc is run when you compile the solution from within visual studio? (maybe it's only needed to add it to the solution as included file, so that it's considered "dirty"? Currently, a change to the fsl or fsy file doesn't trigger a recompile, and only running a full build from commandline can be used as workaround).

@KevinRansom
Copy link
Contributor Author

@abelbraaksma , I didn't know that. I guess I can take a look, but I will do that in a separate PR

@KevinRansom
Copy link
Contributor Author

@abelbraaksma , just so you know, lex/yacc not regenerating those files when built in vs is doing my brain in.

Kevin

@abelbraaksma
Copy link
Contributor

abelbraaksma commented Aug 11, 2020

@KevinRansom, sorry about your brain 😆, let me help. I've created a tracking issue #9920 and fixed it in #9918 along with a few other nits.

@KevinRansom KevinRansom deleted the lexyacc branch August 19, 2020 20:21
nosami pushed a commit to xamarin/visualfsharp that referenced this pull request Feb 23, 2021
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.

3 participants