Skip to content

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

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 Node.js builds or CI infrastructure.confirmed-bugIssues and PRs for confirmed bugs.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions