Fix hardcoded macOS ln command

This commit is contained in:
Andrew Hyatt 2018-08-19 20:12:52 -04:00
parent 14a8af687a
commit 8c837d260c
No known key found for this signature in database
GPG Key ID: 5456D0F696719C24

View File

@ -119,7 +119,7 @@ resolve(
Tool::Invocation invocation;
invocation.executable() = Tool::Invocation::Executable::External("/bin/sh");
invocation.arguments() = { "-c", Escape::Shell(scriptFilePath) };
invocation.arguments() = { "-c", "sed -ie 's/\\/bin\\/ln/bsdln/g' " + Escape::Shell(scriptFilePath) + "; " + Escape::Shell(scriptFilePath) };
invocation.environment() = environmentVariables;
invocation.workingDirectory() = toolContext->workingDirectory();
invocation.phonyInputs() = inputFiles; /* User-specified, may not exist. */