{"action":"opened","issue":{"url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/4678","labels_url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/4678/labels{/name}","comments_url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/4678/comments","events_url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/4678/events","html_url":"https://github.com/HaxeFoundation/haxe/issues/4678","id":119283889,"number":4678,"title":"Add haxe.macro.Compiler.addHaxelib()","user":{"login":"Gama11","id":2620907,"avatar_url":"https://avatars.githubusercontent.com/u/2620907?v=3","gravatar_id":"","url":"https://api.github.com/users/Gama11","html_url":"https://github.com/Gama11","followers_url":"https://api.github.com/users/Gama11/followers","following_url":"https://api.github.com/users/Gama11/following{/other_user}","gists_url":"https://api.github.com/users/Gama11/gists{/gist_id}","starred_url":"https://api.github.com/users/Gama11/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gama11/subscriptions","organizations_url":"https://api.github.com/users/Gama11/orgs","repos_url":"https://api.github.com/users/Gama11/repos","events_url":"https://api.github.com/users/Gama11/events{/privacy}","received_events_url":"https://api.github.com/users/Gama11/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-28T10:08:43Z","updated_at":"2015-11-28T10:08:43Z","closed_at":null,"body":"`haxe.macro.Compiler.addHaxelib()` isn't too different from the already existing `addClassPath()`, but would be convenient to conditionalize the inclusion of a haxelib in some way. For example, you might only want to include a haxelib if it's installed (some way to check if a haxelib is installed would be handy for this use-case, like `Compiler.getHaxelibPath()`). With the `-lib` argument, you'd run into a compiler error if the lib isn't there."}}