numpy.distutils.ccompiler.CCompiler_customize#
- distutils.ccompiler.CCompiler_customize(self, dist, need_cxx=0)[原始碼]#
對編譯器實例進行任何平台特定的自訂。
此方法呼叫
distutils.sysconfig.customize_compiler
進行平台特定的自訂,並可選擇性地移除旗標,以在編譯 C++ 程式碼時抑制偽造的警告。- 參數:
- dist物件
此參數未用於任何用途。
- need_cxxbool, optional
是否需要編譯 C++。 如果是 (True),則會移除
"-Wstrict-prototypes"
選項以防止偽造的警告。預設值為 False。
- 回傳值:
- 無
註解
所有 distutils 使用的預設選項都可以透過以下方式提取
from distutils import sysconfig sysconfig.get_config_vars('CC', 'CXX', 'OPT', 'BASECFLAGS', 'CCSHARED', 'LDSHARED', 'SO')