Make native build work again.
This commit is contained in:
parent
52ed7fd8f8
commit
29174b669f
|
@ -847,9 +847,9 @@ class Environment():
|
|||
path = os.path.split(__file__)[0]
|
||||
return os.path.join(path, 'depfixer.py')
|
||||
|
||||
def detect_cpp_compiler(self):
|
||||
def detect_cpp_compiler(self, want_cross):
|
||||
evar = 'CXX'
|
||||
if self.is_cross_build():
|
||||
if self.is_cross_build() and want_cross:
|
||||
compilers = [self.cross_info['cpp']]
|
||||
ccache = []
|
||||
is_cross = True
|
||||
|
|
|
@ -592,17 +592,17 @@ class Executable(BuildTarget):
|
|||
self.filename = self.name
|
||||
|
||||
class StaticLibrary(BuildTarget):
|
||||
def __init__(self, name, subdir, sources, environment, kwargs):
|
||||
BuildTarget.__init__(self, name, subdir, sources, kwargs)
|
||||
def __init__(self, name, subdir, is_cross, sources, environment, kwargs):
|
||||
BuildTarget.__init__(self, name, subdir, is_cross, sources, kwargs)
|
||||
prefix = environment.get_static_lib_prefix()
|
||||
suffix = environment.get_static_lib_suffix()
|
||||
self.filename = prefix + self.name + '.' + suffix
|
||||
|
||||
class SharedLibrary(BuildTarget):
|
||||
def __init__(self, name, subdir, sources, environment, kwargs):
|
||||
def __init__(self, name, subdir, is_cross, sources, environment, kwargs):
|
||||
self.version = None
|
||||
self.soversion = None
|
||||
BuildTarget.__init__(self, name, subdir, sources, kwargs)
|
||||
BuildTarget.__init__(self, name, subdir, is_cross, sources, kwargs)
|
||||
self.prefix = environment.get_shared_lib_prefix()
|
||||
self.suffix = environment.get_shared_lib_suffix()
|
||||
|
||||
|
|
Loading…
Reference in New Issue