Skip to content

Compiler: disable checks for a scheduler #3897

Open
@stoader

Description

@stoader

Is there a way to tell the compiler to skip verifying the use of go routines when the -scheduler=none build option is used?

There are libraries which may use multiple go routines or none based on runtime configuration. In case such a library is used with a configuration which will result in not launching go routines we would use the -scheduler=none build option. However, this currently causes the build to fail with attempted to start a go routine without a scheduler

As an example this go routine launch https://github.com/klauspost/compress/blob/master/zstd/decoder.go#L236C14-L236C14 will never execute if this library is configured to use only a single go routine: https://github.com/klauspost/compress/blob/master/zstd/decoder.go#L236C14-L236C14

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions