File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -80,13 +80,19 @@ bool tryCustomCompiler(string const& _code, string& _compiledCode)
8080 {
8181 size_t codeStartPos = pos + compilerPrefix.length() + 1;
8282 string arg;
83+ string nativeArg;
8384 if (afterPrefix == ' ')
8485 {
8586 auto const argArr = parseArgsFromStringIntoArray(_code, codeStartPos);
8687 for (auto const& el : argArr)
87- arg += el + " ";
88+ {
89+ if (el == "object" || el == "\"C\"")
90+ nativeArg += el + " "; // Special case for native yul args
91+ else
92+ arg += el + " ";
93+ }
8894 }
89- string const customCode = _code.substr(codeStartPos);
95+ string const customCode = nativeArg + _code.substr(codeStartPos);
9096 fs::path path(fs::temp_directory_path() / fs::unique_path());
9197 string cmd = compilerScript.string() + " " + path.string() + " " + arg;
9298 writeFile(path.string(), customCode);
You can’t perform that action at this time.
0 commit comments