Skip to content

Unable to compile Swift runtime on Linux #4236

@dschaefer

Description

@dschaefer

ProfilingATNSimulator.swift references NSEC_PER_SEC, which is undefined on Linux.

I've seen others do:

#if os(Linux)
	import let CDispatch.NSEC_PER_SEC
#endif

Though I'll leave it to the maintainers to decide the right approach (I didn't even know import let was a thing and neither did the GitHub syntax highlighter apparently).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions