Skip to content

rust configure is misinvoking sed -i on Mac OS X #6929

Closed
@pnkfelix

Description

@pnkfelix

These lines

        # Hack the tools Makefile to turn off the clang build
        sed -i 's/clang//g' tools/Makefile

are not correct for sed on OS X, where the extension for the backup files is required when using -i

% sed --help
sed: illegal option -- -
usage: sed script [-Ealn] [-i extension] [file ...]
       sed [-Ealn] [-i extension] [-e script] ... [-f script_file] ... [file ...]

I believe this is what causes the following output during configure:

sed: 1: "tools/Makefile": undefined label 'ools/Makefile'

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