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 8b0f665 commit 1b403b8Copy full SHA for 1b403b8
passes/cmds/setenv.cc
@@ -41,8 +41,12 @@ struct SetenvPass : public Pass {
41
if(args.size() != 3)
42
log_cmd_error("Wrong number of arguments given.\n");
43
44
+#if defined(_WIN32)
45
+ _putenv_s(args[1].c_str(), args[2].c_str());
46
+#else
47
setenv(args[1].c_str(), args[2].c_str(), 1);
-
48
+#endif
49
+
50
}
51
} SetenvPass;
52
0 commit comments