Skip to content

The -platform_version flag behavior is a breaking change #44158

@llvmbot

Description

@llvmbot
Bugzilla Link 44813
Resolution FIXED
Resolved on Feb 27, 2020 05:01
Version unspecified
OS Windows NT
Blocks #43900
Reporter LLVM Bugzilla Contributor
CC @hyp,@zmodem,@zygoloid

Extended Description

One of our build configurations is a Linux-to-Mac cross-compile that uses cctools-port, which is currently at ld64 version 450.

Using the clang 10.0 release candidates, these builds fail, because of unknown option: -platform_version, coming from https://reviews.llvm.org/D71579.

I see that there is a way to get the old behavior by adding -mlinker-version, but something doesn't feel right about having to do this. Generally the tools are pretty good about preserving compatibility, unless there is a really strong reason not to.

I'd like to request that either:

  • The default be reconsidered, or
  • To make an explicit statement that the current behavior should stay, acknowledging that it is a build-breaking change for some codebases, and update the release notes to mention this change and the workaround.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzillaclang:driver'clang' and 'clang++' user-facing binaries. Not 'clang-cl'

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions