mirror of
https://github.com/w23/xash3d-fwgs
synced 2024-12-15 13:41:33 +01:00
waifulib: xcompile: use llvm-strip on host
This commit is contained in:
parent
0389d2495f
commit
16e60bbb5f
@ -183,17 +183,17 @@ class Android:
|
||||
|
||||
def cc(self):
|
||||
if self.is_host():
|
||||
return 'clang'
|
||||
return 'clang --target=%s' % self.clang_host_triplet()
|
||||
return self.toolchain_path + ('clang' if self.is_clang() else 'gcc')
|
||||
|
||||
def cxx(self):
|
||||
if self.is_host():
|
||||
return 'clang++'
|
||||
return 'clang++ --target=%s' % self.clang_host_triplet()
|
||||
return self.toolchain_path + ('clang++' if self.is_clang() else 'g++')
|
||||
|
||||
def strip(self):
|
||||
if self.is_host():
|
||||
return 'strip'
|
||||
return 'llvm-strip'
|
||||
return os.path.join(self.gen_binutils_path(), 'strip')
|
||||
|
||||
def system_stl(self):
|
||||
@ -230,7 +230,7 @@ class Android:
|
||||
def cflags(self):
|
||||
cflags = []
|
||||
if self.is_host():
|
||||
cflags += ['-nostdlib', '--target=%s' % self.clang_host_triplet()]
|
||||
cflags += ['-nostdlib']
|
||||
|
||||
if self.ndk_rev < 20:
|
||||
cflags += ['--sysroot={0}'.format(self.sysroot())]
|
||||
|
Loading…
Reference in New Issue
Block a user