Skip to content

Commit 125686a

Browse files
committed
Use the pinned SDK compiler for host application tests
1 parent c978f59 commit 125686a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎rust-sdk/build.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,9 @@ def build(source, output, sdk, tests):
119119
host_env = dict(os.environ, **sdk['fonts'], CARGO_PROFILE_TEST_DEBUG='0')
120120
for key in ('RUSTFLAGS', 'CARGO_ENCODED_RUSTFLAGS', 'RUSTC', 'RUSTDOC'):
121121
host_env.pop(key, None)
122+
host_env.update(RUSTC=sdk['rustc'], RUSTDOC=sdk['rustdoc'])
122123
if tests:
123-
run(['cargo', 'test', '--manifest-path', project / 'Cargo.toml', '--target-dir', output / 'host-target', *options],
124+
run([sdk['cargo'], 'test', '--manifest-path', project / 'Cargo.toml', '--target-dir', output / 'host-target', *options],
124125
env=host_env, cwd=project)
125126
env = dict(host_env, RUSTC=sdk['rustc'], RUSTDOC=sdk['rustdoc'],
126127
CARGO_ENCODED_RUSTFLAGS='\x1f'.join(sdk['rustflags'] + ['--remap-path-prefix=' + str(source) + '=/src/app',

0 commit comments

Comments
 (0)