diff --git a/lib/Driver/ToolChains.cpp b/lib/Driver/ToolChains.cpp index 923be9064d266..e67ee9f52334d 100644 --- a/lib/Driver/ToolChains.cpp +++ b/lib/Driver/ToolChains.cpp @@ -1172,7 +1172,7 @@ void ToolChain::getResourceDirPath(SmallVectorImpl &resourceDirPath, if (const Arg *A = args.getLastArg(options::OPT_resource_dir)) { StringRef value = A->getValue(); resourceDirPath.append(value.begin(), value.end()); - } else if (!getTriple().isOSDarwin() && args.hasArg(options::OPT_sdk)) { + } else if (args.hasArg(options::OPT_sdk)) { StringRef value = args.getLastArg(options::OPT_sdk)->getValue(); resourceDirPath.append(value.begin(), value.end()); llvm::sys::path::append(resourceDirPath, "usr", "lib",