Page MenuHomePhabricator

Update xhpast.exe
ClosedPublic

Authored by epriestley on Jun 4 2014, 10:10 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, May 3, 3:56 AM
Unknown Object (File)
Thu, May 2, 11:09 AM
Unknown Object (File)
Mon, Apr 29, 2:58 PM
Unknown Object (File)
Wed, Apr 24, 10:21 PM
Unknown Object (File)
Wed, Apr 24, 6:34 AM
Unknown Object (File)
Wed, Apr 24, 6:34 AM
Unknown Object (File)
Sat, Apr 20, 7:00 PM
Unknown Object (File)
Fri, Apr 19, 5:03 AM
Subscribers

Details

Summary

Fixes T4592. I think I got this working. Rough steps were:

  • Install mingw
  • Install git + git bash
  • Using mingw shell only, run build script
  • Oh you have to muck with PATH a lot
  • why is it hanging
  • I wish I could paste
  • this looks like a .exe
Test Plan

???

Diff Detail

Repository
rPHU libphutil
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

epriestley retitled this revision from to Update xhpast.exe.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: richardvanvelzen.

The steps pretty much seem the same as what I have experienced.

However, I just patched this but for some reason .\src\parser\xhpast\bin\xhpast.exe -v doesn't give me anything. :(

I probably did something wrong, let me see if I can figure out what's up.

One step I actually did differently was running mingw32-make in my regular cmd. You only have to follow the steps here and it works just fine.

richardvanvelzen edited edge metadata.

This now suddenly runs cleanly on my machine. Probably thanks to the reboot I just did. :/

It's Windows, not that great a surprise actually...

epriestley updated this revision to Diff 22798.

Closed by commit rPHUa19fc8fd2f3e (authored by @epriestley).

It seems that this breaks when the user doesn't have MingW installed (which I don't have anymore - just did a reinstall).

According to this stackoverflow answer, this can be resolved by adding -static-libgcc -static-libstdc++ to the compiler flags.

Ah, thanks! I'll get this rebuilt.