Skip to content

Conversation

kbkpbot
Copy link
Contributor

@kbkpbot kbkpbot commented Oct 18, 2025

This is discussed at #25519

This PR skip all other files except the user file itself.
Hope this can speedup the vls process.

@vlang vlang deleted a comment from huly-for-github bot Oct 18, 2025
@kbkpbot
Copy link
Contributor Author

kbkpbot commented Oct 19, 2025

The CI fail with (https://github.com/vlang/v/actions/runs/18616692038/job/53082198478?pr=25531)

v -o v.c cmd/v
  gcc -Werror -municode -w v.c -lws2_32
  shell: C:\Program Files\PowerShell\7\pwsh.EXE -command ". '{0}'"
  env:
    VFLAGS: -cc gcc
Error: v.c:568:44: error: two or more data types in declaration specifiers
  568 |                                 typedef u8 bool;
      |                                            ^~~~
Error: Process completed with exit code 1.

It seems that in latest gcc, bool become an internal datatype? Because I compile following c code, has no problem at all:

int main() {
    bool test = 1;
    (void)test;
    return 0;
}

So I suggest change the CI command to :

gcc -Werror -municode -w v.c -lws2_32 -std=c99

@JalonSolov
Copy link
Contributor

That would make sense. The latest C standard did, indeed, introduce BOOL as a real datatype, not just a #define.

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.

2 participants