Skip to content

Commit

Permalink
purged pnacl platform
Browse files Browse the repository at this point in the history
  • Loading branch information
mjansson committed Mar 1, 2018
1 parent a73de7c commit a0859b6
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 20 deletions.
9 changes: 0 additions & 9 deletions build/ninja/clang.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,6 @@ def build_toolchain(self):
self.build_android_toolchain()
elif self.target.is_macos() or self.target.is_ios():
self.build_xcode_toolchain()
elif self.target.is_pnacl():
self.build_pnacl_toolchain()
if self.toolchain != '' and not self.toolchain.endswith('/') and not self.toolchain.endswith('\\'):
self.toolchain += os.sep

Expand Down Expand Up @@ -498,12 +496,5 @@ def builder_apple_multisharedlib(self, writer, config, arch, targettype, infiles
def builder_apple_multibin(self, writer, config, arch, targettype, infiles, outfile, variables):
return writer.build(os.path.join(outfile, self.buildtarget), 'lipo', infiles, variables = variables)

#PNaCl finalizer
def builder_pnacl_multibin(self, writer, config, arch, targettype, infiles, outfile, variables):
binfile = os.path.splitext(self.buildtarget)[0]
pexe = writer.build(os.path.join(outfile, binfile + '.pexe'), 'finalize', infiles)
nmf = writer.build(os.path.join(outfile, binfile + '.nmf'), 'nmf', pexe + infiles)
return [pexe, nmf]

def create(host, target, toolchain):
return ClangToolchain(host, target, toolchain)
11 changes: 0 additions & 11 deletions foundation/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@
# include <sys/types.h>
# include <sys/wait.h>
# include <sys/time.h>
#elif FOUNDATION_PLATFORM_PNACL
# include <unistd.h>
#endif

#if FOUNDATION_PLATFORM_MACOS
Expand Down Expand Up @@ -586,18 +584,11 @@ process_stdin(process_t* proc) {
bool
process_kill(process_t* proc) {
#if FOUNDATION_PLATFORM_WINDOWS

if (!proc->hp || !TerminateProcess(proc->hp, PROCESS_TERMINATED_SIGNAL))
return false;

#elif FOUNDATION_PLATFORM_POSIX

if (!proc->pid || (kill(proc->pid, SIGKILL) < 0))
return false;

#elif FOUNDATION_PLATFORM_PNACL
//Not supported
FOUNDATION_UNUSED(proc);
#else
#error Not implemented
#endif
Expand Down Expand Up @@ -698,8 +689,6 @@ process_wait(process_t* proc) {
return PROCESS_WAIT_FAILED;
}

#elif FOUNDATION_PLATFORM_PNACL
//Not supported
#else
#error Not implemented
#endif
Expand Down

0 comments on commit a0859b6

Please sign in to comment.