tools/llvm-ld: Cygwin can handle #!shbang.

llvm-svn: 125165
This commit is contained in:
NAKAMURA Takumi 2011-02-09 04:17:39 +00:00
parent 19ba2b4d6e
commit db06756c9c
1 changed files with 1 additions and 1 deletions

View File

@ -410,7 +410,7 @@ static int GenerateNative(const std::string &OutputFilename,
static void EmitShellScript(char **argv, Module *M) {
if (Verbose)
errs() << "Emitting Shell Script\n";
#if defined(_WIN32) || defined(__CYGWIN__)
#if defined(_WIN32)
// Windows doesn't support #!/bin/sh style shell scripts in .exe files. To
// support windows systems, we copy the llvm-stub.exe executable from the
// build tree to the destination file.