Skip to content

Commit

Permalink
Update armccompiler.py
Browse files Browse the repository at this point in the history
  • Loading branch information
tomgreen66 authored and charris committed Dec 30, 2021
1 parent e6744fe commit 311ab52
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions numpy/distutils/armccompiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,17 @@ class ArmCCompiler(UnixCCompiler):
cc_exe = 'armclang'
cxx_exe = 'armclang++'

def __init__ (self, verbose=0, dry_run=0, force=0):
UnixCCompiler.__init__ (self, verbose, dry_run, force)
def __init__(self, verbose=0, dry_run=0, force=0):
UnixCCompiler.__init__(self, verbose, dry_run, force)
cc_compiler = self.cc_exe
cxx_compiler = self.cxx_exe
self.set_executables(compiler=cc_compiler + ' -mcpu=native -O3 -fPIC',
compiler_so=cc_compiler + ' -mcpu=native -O3 -fPIC',
compiler_cxx=cxx_compiler + ' -mcpu=native -O3 -fPIC',
linker_exe=cc_compiler + ' -lamath',
linker_so=cc_compiler + ' -lamath -shared')
self.set_executables(compiler=cc_compiler +
' -mcpu=native -O3 -fPIC',
compiler_so=cc_compiler +
' -mcpu=native -O3 -fPIC',
compiler_cxx=cxx_compiler +
' -mcpu=native -O3 -fPIC',
linker_exe=cc_compiler +
' -lamath',
linker_so=cc_compiler +
' -lamath -shared')

0 comments on commit 311ab52

Please sign in to comment.