提交 f1ea1df3 authored 作者: Frederic's avatar Frederic

Use the new mechanism with the gcc.cxxflags flags.

上级 4bbd9861
......@@ -893,12 +893,6 @@ class CLinker(link.Linker):
else:
sig.append('md5: <omitted>')
# technically this should only be appended for gcc-compiled Ops
# and the flags of other compilers should be inserted here... but it's not clear how to
# do this.
if config.gcc.cxxflags:
sig.append(config.gcc.cxxflags)
error_on_play = [False]
def in_sig(i, topological_pos, i_idx):
# assert that every input to every node is one of'
......
......@@ -1315,7 +1315,8 @@ def gcc_version():
class GCC_compiler():
@staticmethod
def compile_args():
return []
cxxflags = [flag for flag in config.gcc.cxxflags.split(' ') if flag]
return cxxflags
@staticmethod
def compile_str(module_name, src_code, location=None,
......@@ -1408,9 +1409,6 @@ class GCC_compiler():
cmd.extend(p for p in preargs if not p.startswith('-O'))
else:
cmd.extend(preargs)
cxxflags = [flag for flag in config.gcc.cxxflags.split(' ') if flag]
#print >> sys.stderr, config.gcc.cxxflags.split(' ')
cmd.extend(cxxflags)
cmd.extend('-I%s' % idir for idir in include_dirs)
cmd.extend(['-o', lib_filename])
cmd.append(cppfilename)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论