Skip to content

Enhance separate-debug-info.sh to be compatible compatible with clang #22840

@bendlas

Description

@bendlas

Issue description

As seen in this build job https://travis-ci.org/NixOS/nixpkgs/jobs/201821348 (relevant section reproduced below for archival), separate-debug-info.sh fails on clang, which is unfortunate for packages that would otherwise be portable between linux and osx.

Steps to reproduce

Include separate-debug-info.sh into a osx-enabled build, as seen here: 53985c5

Faillog

===> LD
clang-3.7: warning: argument unused during compilation: '-Wa,--compress-debug-sections'
ld: unknown option: --compress-debug-sections=zlib
clang-3.7: error: linker command failed with exit code 1 (use -v to see invocation)

Metadata

Metadata

Assignees

No one assigned

    Labels

    2.status: stalehttps://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md6.topic: darwinRunning or building packages on Darwin6.topic: llvm/clangIssues related to llvmPackages, clangStdenv and related

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions