Mercurial > hg > Members > aka > jupyter_CbC_kernel
changeset 85:4d7d24e87c88
fix gcc option rm -std=c11
author | musou_aka <> |
---|---|
date | Mon, 25 Jun 2018 23:26:36 +0900 |
parents | 371a7388a93a |
children | 62bff02c6fbc |
files | jupyter_CbC_kernel/kernel.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/jupyter_CbC_kernel/kernel.py Mon Jun 25 13:29:09 2018 +0900 +++ b/jupyter_CbC_kernel/kernel.py Mon Jun 25 23:26:36 2018 +0900 @@ -84,7 +84,7 @@ os.close(mastertemp[0]) self.master_path = mastertemp[1] filepath = path.join(path.dirname(path.realpath(__file__)), 'resources', 'master.c') - subprocess.call(['gcc', filepath, '-std=c11', '-rdynamic', '-ldl', '-o', self.master_path]) + subprocess.call(['gcc', filepath, '-rdynamic', '-ldl', '-o', self.master_path]) def cleanup_files(self): """Remove all the temporary files created by the kernel""" @@ -113,7 +113,7 @@ lambda contents: self._write_to_stderr(contents.decode())) def compile_with_gcc(self, source_filename, binary_filename, cflags=None, ldflags=None): - cflags = ['-std=c11', '-fPIC', '-shared', '-rdynamic'] + cflags + cflags = ['-fPIC', '-shared', '-rdynamic'] + cflags args = ['gcc', source_filename] + cflags + ['-o', binary_filename] + ldflags return self.create_jupyter_subprocess(args)