def mkspec_clang_android_configure(conf, major, minor, prefix, target): conf.set_mkspec_platform('android') conf.mkspec_clang_configure(major, minor, prefix) conf.mkspec_set_android_options() # Specify the target architecture as required by clang target_flags = ['-target', target] conf.env['CFLAGS'] += target_flags conf.env['CXXFLAGS'] += target_flags conf.env['LINKFLAGS'] += target_flags
def mkspec_clang_android_configure(conf, major, minor, prefix, target=None): conf.set_mkspec_platform('android') conf.mkspec_clang_configure(major, minor, prefix) conf.mkspec_set_android_options() # Specify the target architecture if required. Newer Android toolchains # explicitly set the target in the arm-linux-androideabi-clang++ script, # so this is no longer needed. if target: target_flags = ['-target', target] conf.env['CFLAGS'] += target_flags conf.env['CXXFLAGS'] += target_flags conf.env['LINKFLAGS'] += target_flags
def mkspec_clang_android_configure(conf, major, minor, prefix, target=None): conf.set_mkspec_platform("android") conf.mkspec_clang_configure(major, minor, prefix) conf.mkspec_set_android_options() # Specify the target architecture if required. Newer Android toolchains # explicitly set the target in the arm-linux-androideabi-clang++ script, # so this is no longer needed. if target: target_flags = ["-target", target] conf.env["CFLAGS"] += target_flags conf.env["CXXFLAGS"] += target_flags conf.env["LINKFLAGS"] += target_flags if major == 5 and minor == 0: # This warning is broken in clang 5.0.300080 (Android NDK r16b). # The flag is not needed for newer versions that include this patch: # https://reviews.llvm.org/D33526 conf.env["CXXFLAGS"] += ["-Wno-unused-lambda-capture"]
def mkspec_clang_android_configure(conf, major, minor, prefix, target=None): conf.set_mkspec_platform('android') conf.mkspec_clang_configure(major, minor, prefix) conf.mkspec_set_android_options() # Specify the target architecture if required. Newer Android toolchains # explicitly set the target in the arm-linux-androideabi-clang++ script, # so this is no longer needed. if target: target_flags = ['-target', target] conf.env['CFLAGS'] += target_flags conf.env['CXXFLAGS'] += target_flags conf.env['LINKFLAGS'] += target_flags if major == 5 and minor == 0: # This warning is broken in clang 5.0.300080 (Android NDK r16b). # The flag is not needed for newer versions that include this patch: # https://reviews.llvm.org/D33526 conf.env['CXXFLAGS'] += ['-Wno-unused-lambda-capture']
def mkspec_gxx_android_configure(conf, major, minor, prefix): conf.set_mkspec_platform('android') conf.mkspec_gxx_configure(major, minor, prefix) conf.mkspec_set_android_options()
def mkspec_gxx_android_configure(conf, major, minor, prefix): conf.set_mkspec_platform('android') conf.mkspec_gxx_configure(major, minor, prefix) conf.mkspec_set_android_options()