提交 f86561f2 authored 作者: Olivier Delalleau's avatar Olivier Delalleau

Minor tpyo fixes in doc of new method c_no_compile_args

上级 34d03c28
...@@ -98,16 +98,20 @@ class CLinkerOp(object): ...@@ -98,16 +98,20 @@ class CLinkerOp(object):
% self.__class__.__name__) % self.__class__.__name__)
def c_no_compile_args(self): def c_no_compile_args(self):
"""Optional: Return a list of incompabitle gcc compiler arguments. """Optional: Return a list of incompatible gcc compiler arguments.
We will remove those argument from the command line of gcc. So if We will remove those arguments from the command line of gcc. So if
another Op add a compile args in the graph that is incompatible another Op adds a compile arg in the graph that is incompatible
with this op, the incompatible args won't be used. with this Op, the incompatible arg will not be used.
Usefull to remove -ffast-math. Useful for instance to remove -ffast-math.
EXAMPLE EXAMPLE
WRITEME WRITEME
:Exceptions:
- `MethodNotDefined`: the subclass does not override this method
""" """
raise utils.MethodNotDefined('%s.c_no_compile_args' \ raise utils.MethodNotDefined('%s.c_no_compile_args' \
% self.__class__.__name__) % self.__class__.__name__)
......
...@@ -149,15 +149,19 @@ class CLinkerType(object): ...@@ -149,15 +149,19 @@ class CLinkerType(object):
raise MethodNotDefined("c_compile_args", type(self), self.__class__.__name__) raise MethodNotDefined("c_compile_args", type(self), self.__class__.__name__)
def c_no_compile_args(self): def c_no_compile_args(self):
"""Optional: Return a list of incompabitle gcc compiler arguments. """Optional: Return a list of incompatible gcc compiler arguments.
We will remove those argument from the command line of gcc. So if We will remove those arguments from the command line of gcc. So if
another Op add a compile args in the graph that is incompatible another Op adds a compile arg in the graph that is incompatible
with this op, the incompatible args won't be used. with this Op, the incompatible arg will not be used.
Usefull to remove -ffast-math. Useful for instance to remove -ffast-math.
EXAMPLE
WRITEME
:Exceptions: :Exceptions:
- `MethodNotDefined`: Subclass does not implement this method - `MethodNotDefined`: the subclass does not override this method
""" """
raise MethodNotDefined("c_no_compile_args", type(self), self.__class__.__name__) raise MethodNotDefined("c_no_compile_args", type(self), self.__class__.__name__)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论