We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c110811 commit ad8e47cCopy full SHA for ad8e47c
tests/tests.rs
@@ -5,14 +5,20 @@ fn test_build() {
5
let host = target_lexicon::Triple::host().to_string();
6
let outdir = tempfile::tempdir().expect("Failed to create temp dir");
7
let mut build = lua_src::Build::new();
8
- build.target(&host).out_dir(&outdir);
+ build.target(&host);
9
10
for version in [
11
lua_src::Lua51,
12
lua_src::Lua52,
13
lua_src::Lua53,
14
lua_src::Lua54,
15
+ lua_src::Lua55,
16
] {
17
+ // Use a dedicated output dir for each Lua version
18
+ let version_dir = outdir.path().join(format!("{:?}", version));
19
+ std::fs::create_dir(&version_dir).expect("Failed to create version dir");
20
+
21
+ build.out_dir(&version_dir);
22
let _artifacts = build.build(version);
23
}
24
0 commit comments