Skip to content

Commit

Permalink
Revert "Use new posix_spawn file actions API to set working dir in ma…
Browse files Browse the repository at this point in the history
…cOS 10.15"

This reverts commit 0ff1081.
  • Loading branch information
dmbryson committed Jun 17, 2019
1 parent 95fb7ea commit b90d345
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions lib/Basic/Subprocess.cpp
Expand Up @@ -73,7 +73,6 @@ int pthread_fchdir_np(int fd)

#ifndef HAVE_POSIX_SPAWN_CHDIR
#if defined(__sun) || \
(defined(__MAC_OS_X_VERSION_MIN_REQUIRED) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101500) || \
__GLIBC_PREREQ(2, 29)
#define HAVE_POSIX_SPAWN_CHDIR 1
#else
Expand All @@ -87,12 +86,6 @@ static int posix_spawn_file_actions_addchdir(posix_spawn_file_actions_t * __rest
#if HAVE_POSIX_SPAWN_CHDIR
return ::posix_spawn_file_actions_addchdir_np(file_actions, path);
#else
#ifdef __APPLE__
if (__builtin_available(macOS 10.15, *)) {
return ::posix_spawn_file_actions_addchdir_np(file_actions, path);
}
#endif

// Any other POSIX platform returns ENOSYS (Function not implemented),
// to simplify the fallback logic around the call site.
return ENOSYS;
Expand Down

0 comments on commit b90d345

Please sign in to comment.