Merge pull request #1790 from neobrain/fix_missing_packfn_define

unittests/ThunkLibs: Fix test failures due to missing FEX_PACKFN_LINKAGE define
This commit is contained in:
Ryan Houdek authored and GitHub committed 2022-06-22 19:08:55 -07:00
commit a2c9d5a398
1 file changed
+3 -1
+3 -1
View File
@@ -281,7 +281,9 @@ SourceWithAST Fixture::run_thunkgen_guest(std::string_view prelude, std::string_
const std::string full_code = std::string { prelude } + std::string { code };
run_tool(std::make_unique<GenerateThunkLibsActionFactory>(libname, output_filenames), full_code, silent);
std::string result = "#define MAKE_THUNK(lib, name, hash) extern \"C\" int fexthunks_##lib##_##name(void*);\n";
std::string result =
"#define MAKE_THUNK(lib, name, hash) extern \"C\" int fexthunks_##lib##_##name(void*);\n"
"#define FEX_PACKFN_LINKAGE\n";
for (auto& filename : {
output_filenames.thunks,
output_filenames.function_packs_public,