Page MenuHomePhabricator

Update xhpast.exe
ClosedPublic

Authored by epriestley on Jun 4 2014, 10:10 PM.
Tags
None
Referenced Files
F14058971: D9378.diff
Sun, Nov 17, 4:17 PM
F14046391: D9378.diff
Wed, Nov 13, 8:37 PM
F14036461: D9378.diff
Sun, Nov 10, 10:19 AM
F14032323: D9378.diff
Sat, Nov 9, 2:04 PM
F13998298: D9378.diff
Thu, Oct 24, 8:43 AM
F13992819: D9378.diff
Tue, Oct 22, 7:00 PM
F13988103: D9378.id.diff
Mon, Oct 21, 1:08 PM
Unknown Object (File)
Sep 25 2024, 11:27 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.