Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

builder: can't compile using msvc with multiple c sources #22376

Closed
crackedmind opened this issue Oct 1, 2024 · 0 comments · Fixed by #22377
Closed

builder: can't compile using msvc with multiple c sources #22376

crackedmind opened this issue Oct 1, 2024 · 0 comments · Fixed by #22377
Labels
Bug This tag is applied to issues which reports bugs.

Comments

@crackedmind
Copy link
Member

crackedmind commented Oct 1, 2024

Describe the bug

Can't build program when using #flag meow.c

Reproduction Steps

try to build https://github.com/vlang/v-analyzer/ using msvc

Expected Behavior

successful compile

Current Behavior

Simplified compile output

cl -w /we4013 /volatile:ms /Fo"C:\Users\USER\AppData\Local\Temp\v_0\v-analyzer.exe.01J92X1SZDV2JVAZZP5T7AYMCE.tmp.c.obj" /F 16777216 /O2 /MD /DNDEBUG
"C:\Users\USER\AppData\Local\Temp\v_0\v-analyzer.exe.01J92X1SZDV2JVAZZP5T7AYMCE.tmp.c"
.\v-analyzer/tree_sitter_v/bindings/core/lib/src/lib.c 
.\v-analyzer/tree_sitter_v/src/parser.c 
cl : Command line error D8036 : '/FoC:\Users\digit\AppData\Local\Temp\v_0\v-analyzer.exe.01J92X1SZDV2JVAZZP5T7AYMCE.tmp.c.obj' not allowed with multiple source files

Possible Solution

msvc /Fo flag don't allow multiple sources input. d8036

drop it

Additional Information/Context

No response

V version

master

Environment details (OS name and version, etc.)

windows 11, msvc latest

Note

You can use the 👍 reaction to increase the issue's priority for developers.

Please note that only the 👍 reaction to the issue itself counts as a vote.
Other reactions and those to comments will not be taken into account.

@crackedmind crackedmind added the Bug This tag is applied to issues which reports bugs. label Oct 1, 2024
crackedmind added a commit to crackedmind/v that referenced this issue Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug This tag is applied to issues which reports bugs.
Projects
None yet
1 participant