forked from thierry-martinez/metapp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix thierry-martinez#5: compatibility with merlin
Reported by Kiran Gopinathan, thierry-martinez#5 Merlin runs preprocessor in a reduced environment where `PATH` only contains the directory where ocaml is (typically `~/.opam/<switch>/bin`). This prevents ocaml from finding the assembler (`as`). This commit makes metapp check whether `as` is in the PATH before calling ocaml. If it is not, it checks whether `/usr/bin/as` exists. It it exists, `/usr/bin` is appended to PATH. This is still quite fragile and will not work in environments where `as` is not in `/usr/bin/`, but I do not know how to do better.
- Loading branch information
1 parent
fb87acd
commit 8f769e4
Showing
2 changed files
with
48 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters