Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
wiseplat
GitHub Repository: wiseplat/python-code
Path: blob/master/ invest-robot-contest_TinkoffBotTwitch-main/venv/lib/python3.8/site-packages/numpy/distutils/armccompiler.py
7757 views
1
from __future__ import division, absolute_import, print_function
2
3
from distutils.unixccompiler import UnixCCompiler
4
5
class ArmCCompiler(UnixCCompiler):
6
7
"""
8
Arm compiler.
9
"""
10
11
compiler_type = 'arm'
12
cc_exe = 'armclang'
13
cxx_exe = 'armclang++'
14
15
def __init__(self, verbose=0, dry_run=0, force=0):
16
UnixCCompiler.__init__(self, verbose, dry_run, force)
17
cc_compiler = self.cc_exe
18
cxx_compiler = self.cxx_exe
19
self.set_executables(compiler=cc_compiler +
20
' -O3 -fPIC',
21
compiler_so=cc_compiler +
22
' -O3 -fPIC',
23
compiler_cxx=cxx_compiler +
24
' -O3 -fPIC',
25
linker_exe=cc_compiler +
26
' -lamath',
27
linker_so=cc_compiler +
28
' -lamath -shared')
29
30