@@ -44,6 +44,8 @@ class RustExtension:
4444 * Strip.All - strip all symbols
4545 script : bool
4646 Generate console script for executable if `Binding.Exec` is used.
47+ native : bool
48+ Build extension or executable with "target-cpu=native"
4749 optional : bool
4850 if it is true, a build failure in the extension will not abort the
4951 build process, but instead simply not install the failing extension.
@@ -52,7 +54,7 @@ class RustExtension:
5254 def __init__ (self , target , path ,
5355 args = None , features = None , rust_version = None ,
5456 quiet = False , debug = None , binding = Binding .PyO3 ,
55- strip = Strip .No , script = False , optional = False ):
57+ strip = Strip .No , script = False , native = False , optional = False ):
5658 if isinstance (target , dict ):
5759 name = '; ' .join ('%s=%s' % (key , val )
5860 for key , val in target .items ())
@@ -69,6 +71,7 @@ def __init__(self, target, path,
6971 self .debug = debug
7072 self .strip = strip
7173 self .script = script
74+ self .native = native
7275 self .optional = optional
7376
7477 if features is None :
0 commit comments