# Path: sio/compilers/system_gcc.py
# class CStyleCompiler(Compiler):
#     lang = 'c'
#     output_file = 'a.out'
#     # CStyleCompiler customization
#     compiler = 'gcc'  # Compiler to use
#     options = []  # Compiler options
# 
#     def _make_cmdline(self, executor):
#         cmdline = (
#             [self.compiler, tempcwd(self.source_file), '-o', tempcwd(self.output_file)]
#             + self.options
#             + list(self.extra_compilation_args)
#         )
# 
#         cmdline.extend(
#             tempcwd(os.path.basename(source)) for source in self.additional_sources
#         )
#         return cmdline


from sio.compilers.system_gcc import CStyleCompiler
from __future__ import absolute_import


class CCompiler(CStyleCompiler):
    lang = 'c'

    @classmethod
    def gcc_4_8_2_c99(cls):
        obj = cls('gcc.4_8_2')
        obj.options = ['-std=gnu99', '-static', '-O2', '-s', '-lm']
        return obj



# Path: sio/compilers/system_gcc.py
# class CStyleCompiler(Compiler):
#     lang = 'c'
#     output_file = 'a.out'
#     # CStyleCompiler customization
#     compiler = 'gcc'  # Compiler to use
#     options = []  # Compiler options
# 
#     def _make_cmdline(self, executor):
#         cmdline = (
#             [self.compiler, tempcwd(self.source_file), '-o', tempcwd(self.output_file)]
#             + self.options
#             + list(self.extra_compilation_args)
#         )
# 
#         cmdline.extend(
#             tempcwd(os.path.basename(source)) for source in self.additional_sources
#         )
#         return cmdline


# Path: sio/compilers/gcc.py
from sio.compilers.system_gcc import CStyleCompiler

from __future__ import absolute_import


class CCompiler(CStyleCompiler):
    lang = 'c'

    @classmethod
    def gcc_4_8_2_c99(cls):
        obj = cls('gcc.4_8_2')
        obj.options = ['-std=gnu99', '-static', '-O2', '-s', '-lm']
        return obj



class CPPCompiler(CStyleCompiler):