Skip to content

Commit a4adaf4

Browse files
committed
[android][test] 'swift_interpreter' not available
The 'swift_interpreter' feature is added when targeting Linux, however this feature is not available when targeting Android specifically. This marks the following failing tests as unsupported: - Serialization/operator.swift - Interpreter/return_from_main.swift - Interpreter/mandelbrot.swift - Interpreter/fractal.swift - DebugInfo/variables-interpreter.swift - 1_stdlib/Reflection_jit.swift The following tests no longer pass, and instead are unsupported: - Interpreter/shebang-env.swift - Interpreter/protocol_lookup_jit.swift - Interpreter/process_arguments.swift - Interpreter/import.swift - Driver/subcommands.swift - Driver/options-interpreter.swift These tests were passing because they use incorrect substitutions. Tests should use `%target-swift-frontend` to invoke `swift -frontend` with the correct `-target` specified, but these tests use the plain `%swift`--which means they're running against the host machine, not the target.
1 parent 2bb7349 commit a4adaf4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/lit.cfg

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -750,6 +750,8 @@ elif run_os == 'linux-androideabi':
750750
"ld -L%s" %
751751
(os.path.join(test_resource_dir, config.target_sdk_name)))
752752
config.environment['ANDROID_NDK_HOME'] = os.getenv("ANDROID_NDK_HOME")
753+
# The Swift interpreter is not available when targeting Android.
754+
config.available_features.remove('swift_interpreter')
753755

754756
else:
755757
lit_config.fatal("Don't know how to define target_run and "

0 commit comments

Comments
 (0)