Skip to content

configure: clang version is misdetected for double-digit clang versions #21175

Closed
@mistydemeo

Description

@mistydemeo
  • Version: v10.3.0
  • Platform:
  • Subsystem:

Configure performs a check to see if clang is newer than 3.4.2. However, this check is done against the string parsed out of the clang output in try_check_compiler: https://github.com/nodejs/node/blob/master/configure#L710 This results in miscomparisons for double-digit clang versions. For example, if clang_version is '10.0.0', then clang_version < '3.4.2' is false even though clang 10 is definitely newer than 3.

Metadata

Metadata

Assignees

No one assigned

    Labels

    buildIssues and PRs related to build files or the CI.confirmed-bugIssues with confirmed bugs.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions