{"action":"created","issue":{"url":"https://api.github.com/repos/bkaradzic/genie/issues/81","labels_url":"https://api.github.com/repos/bkaradzic/genie/issues/81/labels{/name}","comments_url":"https://api.github.com/repos/bkaradzic/genie/issues/81/comments","events_url":"https://api.github.com/repos/bkaradzic/genie/issues/81/events","html_url":"https://github.com/bkaradzic/genie/issues/81","id":75839590,"number":81,"title":"Explicit choice of linking debug or release run-time","user":{"login":"ryanjuckett","id":1256548,"avatar_url":"https://avatars.githubusercontent.com/u/1256548?v=3","gravatar_id":"","url":"https://api.github.com/users/ryanjuckett","html_url":"https://github.com/ryanjuckett","followers_url":"https://api.github.com/users/ryanjuckett/followers","following_url":"https://api.github.com/users/ryanjuckett/following{/other_user}","gists_url":"https://api.github.com/users/ryanjuckett/gists{/gist_id}","starred_url":"https://api.github.com/users/ryanjuckett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryanjuckett/subscriptions","organizations_url":"https://api.github.com/users/ryanjuckett/orgs","repos_url":"https://api.github.com/users/ryanjuckett/repos","events_url":"https://api.github.com/users/ryanjuckett/events{/privacy}","received_events_url":"https://api.github.com/users/ryanjuckett/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/bkaradzic/genie/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-05-13T04:21:48Z","updated_at":"2015-05-13T05:58:15Z","closed_at":null,"body":"I'm switching from my prior customized branch of premake to GENie and one feature I had added that is missing here is support for the explicit choice of whether to link against the debug or release run-time libraries. By default, it is implicit to use the release libs only when optimization is on or symbols are off.\r\n\r\nThe code in question can be found in 'function premake.config.isdebugbuild(cfg)' in config.lua.\r\n\r\nI ended up adding new flags: DebugRuntime and ReleaseRuntime. Then I updated said function as follows:\r\n\r\n\tfunction premake.config.isdebugbuild(cfg)\r\n\t\t-- If any of the specific runtime flags are set\r\n\t\tif cfg.flags.DebugRuntime then\r\n\t\t\treturn true\r\n\t\tend\r\n\r\n\t\tif cfg.flags.ReleaseRuntime then\r\n\t\t\treturn false\r\n\t\tend\r\n\r\n\t\t-- If any of the optimize flags are set, it's a release a build\r\n\t\tif cfg.flags.Optimize or cfg.flags.OptimizeSize or cfg.flags.OptimizeSpeed then\r\n\t\t\treturn false\r\n\t\tend\r\n\r\n\t\t-- If symbols are not defined, it's a release build\r\n\t\tif not cfg.flags.Symbols then\r\n\t\t\treturn false\r\n\t\tend\r\n\r\n\t\treturn true\r\n\tend\r\n\r\nDoes this sound appropriate for GENie as well? Feel free to add the code above or I could do what sounds like a pull request (?) - I literally just installed git for the first time ever so still figuring it out."},"comment":{"url":"https://api.github.com/repos/bkaradzic/genie/issues/comments/101523587","html_url":"https://github.com/bkaradzic/genie/issues/81#issuecomment-101523587","issue_url":"https://api.github.com/repos/bkaradzic/genie/issues/81","id":101523587,"user":{"login":"bkaradzic","id":814772,"avatar_url":"https://avatars.githubusercontent.com/u/814772?v=3","gravatar_id":"","url":"https://api.github.com/users/bkaradzic","html_url":"https://github.com/bkaradzic","followers_url":"https://api.github.com/users/bkaradzic/followers","following_url":"https://api.github.com/users/bkaradzic/following{/other_user}","gists_url":"https://api.github.com/users/bkaradzic/gists{/gist_id}","starred_url":"https://api.github.com/users/bkaradzic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bkaradzic/subscriptions","organizations_url":"https://api.github.com/users/bkaradzic/orgs","repos_url":"https://api.github.com/users/bkaradzic/repos","events_url":"https://api.github.com/users/bkaradzic/events{/privacy}","received_events_url":"https://api.github.com/users/bkaradzic/received_events","type":"User","site_admin":false},"created_at":"2015-05-13T05:58:15Z","updated_at":"2015-05-13T05:58:15Z","body":"It's evaluated per project/config. Try it, I think it will work."}}