Skip to content

run now does I/O redirection on Windows #2849

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 31, 2018

Conversation

kroening
Copy link
Member

No description provided.

src/util/run.cpp Outdated
{
std::vector<std::string> new_argv = argv;
new_argv.insert(new_argv.begin(), "cl.exe");
new_argv.insert(new_argv.begin() + 1, "/c");
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think run was meant to be limited to cl.exe?! It should equally be usable, e.g., with an SMT solver?!

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The SMT solvers are currently called with system(), but it would actually be a good idea to change this (will do separate PR).
Fixed!

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed!

It seems line 116 still has cl.exe hard-coded.

@kroening kroening force-pushed the run-with-redirection-windows branch from 8a93e41 to b5fd869 Compare August 30, 2018 13:48
src/util/run.cpp Outdated
}

// this is recursive
return run("cl.exe", new_argv, "", "", "");
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So there's still this invocation of cl.exe left to be resolved.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed, now fixed.

@kroening kroening force-pushed the run-with-redirection-windows branch from b5fd869 to 9c22b7a Compare August 31, 2018 17:49
@kroening kroening merged commit 2b5e925 into develop Aug 31, 2018
@kroening kroening deleted the run-with-redirection-windows branch August 31, 2018 20:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants