craftr-build / craftr-build-4.x

Frontend for the Craftr build framework.
https://craftr-build.github.io/craftr/
Other
60 stars 14 forks source link

rules.run() should not cause ninja export to warn about non-existent executable #121

Closed NiklasRosenstein closed 7 years ago

NiklasRosenstein commented 8 years ago

If you use rules.run() with a target that generates an executable, the Ninja export process issues a warning that the executable could not be found. It makes sense because the executable will only be built by Ninja after the manifest was exported, but we don't need Ninja to tell us that it didn't exist in the first place. :)

NiklasRosenstein commented 8 years ago

Can get annoying with a lot of targets :smile:

ninja export: program 'D:\\Downloads\\curl-7.49.1\\build\\libcurl\\10-at-a-time.exe' (target: libcurl.10-at-a-time) could not be found
ninja export: program 'D:\\Downloads\\curl-7.49.1\\build\\libcurl\\anyauthput.exe' (target: libcurl.anyauthput) could not be found
ninja export: program 'D:\\Downloads\\curl-7.49.1\\build\\libcurl\\cacertinmem.exe' (target: libcurl.cacertinmem) could not be found
ninja export: program 'D:\\Downloads\\curl-7.49.1\\build\\libcurl\\certinfo.exe' (target: libcurl.certinfo) could not be found
ninja export: program 'D:\\Downloads\\curl-7.49.1\\build\\libcurl\\chkspeed.exe' (target: libcurl.chkspeed) could not be found
ninja export: program 'D:\\Downloads\\curl-7.49.1\\build\\libcurl\\cookie_interface.exe' (target: libcurl.cookie_interface) could not be found
ninja export: program 'D:\\Downloads\\curl-7.49.1\\build\\libcurl\\curlgtk.exe' (target: libcurl.curlgtk) could not be found
ninja export: program 'D:\\Downloads\\curl-7.49.1\\build\\libcurl\\curlx.exe' (target: libcurl.curlx) could not be found
ninja export: program 'D:\\Downloads\\curl-7.49.1\\build\\libcurl\\debug.exe' (target: libcurl.debug) could not be found
ninja export: program 'D:\\Downloads\\curl-7.49.1\\build\\libcurl\\evhiperfifo.exe' (target: libcurl.evhiperfifo) could not be found
ninja export: program 'D:\\Downloads\\curl-7.49.1\\build\\libcurl\\externalsocket.exe' (target: libcurl.externalsocket) could not be found
ninja export: program 'D:\\Downloads\\curl-7.49.1\\build\\libcurl\\fileupload.exe' (target: libcurl.fileupload) could not be found
ninja export: program 'D:\\Downloads\\curl-7.49.1\\build\\libcurl\\fopen.exe' (target: libcurl.fopen) could not be found
ninja export: program 'D:\\Downloads\\curl-7.49.1\\build\\libcurl\\ftp-wildcard.exe' (target: libcurl.ftp-wildcard) could not be found
ninja export: program 'D:\\Downloads\\curl-7.49.1\\build\\libcurl\\ftpget.exe' (target: libcurl.ftpget) could not be found
ninja export: program 'D:\\Downloads\\curl-7.49.1\\build\\libcurl\\ftpgetinfo.exe' (target: libcurl.ftpgetinfo) could not be found
ninja export: program 'D:\\Downloads\\curl-7.49.1\\build\\libcurl\\ftpgetresp.exe' (target: libcurl.ftpgetresp) could not be found
ninja export: program 'D:\\Downloads\\curl-7.49.1\\build\\libcurl\\ftpsget.exe' (target: libcurl.ftpsget) could not be found
ninja export: program 'D:\\Downloads\\curl-7.49.1\\build\\libcurl\\ftpupload.exe' (target: libcurl.ftpupload) could not be found
ninja export: program 'D:\\Downloads\\curl-7.49.1\\build\\libcurl\\ftpuploadresume.exe' (target: libcurl.ftpuploadresume) could not be found
ninja export: program 'D:\\Downloads\\curl-7.49.1\\build\\libcurl\\getinfo.exe' (target: libcurl.getinfo) could not be found
ninja export: program 'D:\\Downloads\\curl-7.49.1\\build\\libcurl\\getinmemory.exe' (target: libcurl.getinmemory) could not be found
ninja export: program 'D:\\Downloads\\curl-7.49.1\\build\\libcurl\\getredirect.exe' (target: libcurl.getredirect) could not be found
ninja export: program 'D:\\Downloads\\curl-7.49.1\\build\\libcurl\\ghiper.exe' (target: libcurl.ghiper) could not be found
ninja export: program 'D:\\Downloads\\curl-7.49.1\\build\\libcurl\\hiperfifo.exe' (target: libcurl.hiperfifo) could not be found
ninja export: program 'D:\\Downloads\\curl-7.49.1\\build\\libcurl\\href_extractor.exe' (target: libcurl.href_extractor) could not be found
ninja export: program 'D:\\Downloads\\curl-7.49.1\\build\\libcurl\\htmltidy.exe' (target: libcurl.htmltidy) could not be found
ninja export: program 'D:\\Downloads\\curl-7.49.1\\build\\libcurl\\http-post.exe' (target: libcurl.http-post) could not be found
ninja export: program 'D:\\Downloads\\curl-7.49.1\\build\\libcurl\\http2-download.exe' (target: libcurl.http2-download) could not be found
ninja export: program 'D:\\Downloads\\curl-7.49.1\\build\\libcurl\\http2-serverpush.exe' (target: libcurl.http2-serverpush) could not be found
ninja export: program 'D:\\Downloads\\curl-7.49.1\\build\\libcurl\\http2-upload.exe' (target: libcurl.http2-upload) could not be found
ninja export: program 'D:\\Downloads\\curl-7.49.1\\build\\libcurl\\httpcustomheader.exe' (target: libcurl.httpcustomheader) could not be found
ninja export: program 'D:\\Downloads\\curl-7.49.1\\build\\libcurl\\httpput.exe' (target: libcurl.httpput) could not be found
ninja export: program 'D:\\Downloads\\curl-7.49.1\\build\\libcurl\\imap-append.exe' (target: libcurl.imap-append) could not be found
ninja export: program 'D:\\Downloads\\curl-7.49.1\\build\\libcurl\\imap-copy.exe' (target: libcurl.imap-copy) could not be found
ninja export: program 'D:\\Downloads\\curl-7.49.1\\build\\libcurl\\imap-create.exe' (target: libcurl.imap-create) could not be found
ninja export: program 'D:\\Downloads\\curl-7.49.1\\build\\libcurl\\imap-delete.exe' (target: libcurl.imap-delete) could not be found
ninja export: program 'D:\\Downloads\\curl-7.49.1\\build\\libcurl\\imap-examine.exe' (target: libcurl.imap-examine) could not be found
ninja export: program 'D:\\Downloads\\curl-7.49.1\\build\\libcurl\\imap-fetch.exe' (target: libcurl.imap-fetch) could not be found
ninja export: program 'D:\\Downloads\\curl-7.49.1\\build\\libcurl\\imap-list.exe' (target: libcurl.imap-list) could not be found
ninja export: program 'D:\\Downloads\\curl-7.49.1\\build\\libcurl\\imap-lsub.exe' (target: libcurl.imap-lsub) could not be found
ninja export: program 'D:\\Downloads\\curl-7.49.1\\build\\libcurl\\imap-multi.exe' (target: libcurl.imap-multi) could not be found
ninja export: program 'D:\\Downloads\\curl-7.49.1\\build\\libcurl\\imap-noop.exe' (target: libcurl.imap-noop) could not be found
ninja export: program 'D:\\Downloads\\curl-7.49.1\\build\\libcurl\\imap-search.exe' (target: libcurl.imap-search) could not be found
ninja export: program 'D:\\Downloads\\curl-7.49.1\\build\\libcurl\\imap-ssl.exe' (target: libcurl.imap-ssl) could not be found
ninja export: program 'D:\\Downloads\\curl-7.49.1\\build\\libcurl\\imap-store.exe' (target: libcurl.imap-store) could not be found
ninja export: program 'D:\\Downloads\\curl-7.49.1\\build\\libcurl\\imap-tls.exe' (target: libcurl.imap-tls) could not be found
ninja export: program 'D:\\Downloads\\curl-7.49.1\\build\\libcurl\\multi-app.exe' (target: libcurl.multi-app) could not be found
ninja export: program 'D:\\Downloads\\curl-7.49.1\\build\\libcurl\\multi-debugcallback.exe' (target: libcurl.multi-debugcallback) could not be found
ninja export: program 'D:\\Downloads\\curl-7.49.1\\build\\libcurl\\multi-double.exe' (target: libcurl.multi-double) could not be found
ninja export: program 'D:\\Downloads\\curl-7.49.1\\build\\libcurl\\multi-post.exe' (target: libcurl.multi-post) could not be found
ninja export: program 'D:\\Downloads\\curl-7.49.1\\build\\libcurl\\multi-single.exe' (target: libcurl.multi-single) could not be found
ninja export: program 'D:\\Downloads\\curl-7.49.1\\build\\libcurl\\multi-uv.exe' (target: libcurl.multi-uv) could not be found
ninja export: program 'D:\\Downloads\\curl-7.49.1\\build\\libcurl\\multithread.exe' (target: libcurl.multithread) could not be found
ninja export: program 'D:\\Downloads\\curl-7.49.1\\build\\libcurl\\opensslthreadlock.exe' (target: libcurl.opensslthreadlock) could not be found
ninja export: program 'D:\\Downloads\\curl-7.49.1\\build\\libcurl\\persistant.exe' (target: libcurl.persistant) could not be found
ninja export: program 'D:\\Downloads\\curl-7.49.1\\build\\libcurl\\pop3-dele.exe' (target: libcurl.pop3-dele) could not be found
ninja export: program 'D:\\Downloads\\curl-7.49.1\\build\\libcurl\\pop3-list.exe' (target: libcurl.pop3-list) could not be found
ninja export: program 'D:\\Downloads\\curl-7.49.1\\build\\libcurl\\pop3-multi.exe' (target: libcurl.pop3-multi) could not be found
ninja export: program 'D:\\Downloads\\curl-7.49.1\\build\\libcurl\\pop3-noop.exe' (target: libcurl.pop3-noop) could not be found
ninja export: program 'D:\\Downloads\\curl-7.49.1\\build\\libcurl\\pop3-retr.exe' (target: libcurl.pop3-retr) could not be found
ninja export: program 'D:\\Downloads\\curl-7.49.1\\build\\libcurl\\pop3-ssl.exe' (target: libcurl.pop3-ssl) could not be found
ninja export: program 'D:\\Downloads\\curl-7.49.1\\build\\libcurl\\pop3-stat.exe' (target: libcurl.pop3-stat) could not be found
ninja export: program 'D:\\Downloads\\curl-7.49.1\\build\\libcurl\\pop3-tls.exe' (target: libcurl.pop3-tls) could not be found
ninja export: program 'D:\\Downloads\\curl-7.49.1\\build\\libcurl\\pop3-top.exe' (target: libcurl.pop3-top) could not be found
ninja export: program 'D:\\Downloads\\curl-7.49.1\\build\\libcurl\\pop3-uidl.exe' (target: libcurl.pop3-uidl) could not be found
ninja export: program 'D:\\Downloads\\curl-7.49.1\\build\\libcurl\\post-callback.exe' (target: libcurl.post-callback) could not be found
ninja export: program 'D:\\Downloads\\curl-7.49.1\\build\\libcurl\\postinmemory.exe' (target: libcurl.postinmemory) could not be found
ninja export: program 'D:\\Downloads\\curl-7.49.1\\build\\libcurl\\postit2.exe' (target: libcurl.postit2) could not be found
ninja export: program 'D:\\Downloads\\curl-7.49.1\\build\\libcurl\\progressfunc.exe' (target: libcurl.progressfunc) could not be found
ninja export: program 'D:\\Downloads\\curl-7.49.1\\build\\libcurl\\resolve.exe' (target: libcurl.resolve) could not be found
ninja export: program 'D:\\Downloads\\curl-7.49.1\\build\\libcurl\\rtsp.exe' (target: libcurl.rtsp) could not be found
ninja export: program 'D:\\Downloads\\curl-7.49.1\\build\\libcurl\\sampleconv.exe' (target: libcurl.sampleconv) could not be found
ninja export: program 'D:\\Downloads\\curl-7.49.1\\build\\libcurl\\sendrecv.exe' (target: libcurl.sendrecv) could not be found
ninja export: program 'D:\\Downloads\\curl-7.49.1\\build\\libcurl\\sepheaders.exe' (target: libcurl.sepheaders) could not be found
ninja export: program 'D:\\Downloads\\curl-7.49.1\\build\\libcurl\\sessioninfo.exe' (target: libcurl.sessioninfo) could not be found
ninja export: program 'D:\\Downloads\\curl-7.49.1\\build\\libcurl\\sftpget.exe' (target: libcurl.sftpget) could not be found
ninja export: program 'D:\\Downloads\\curl-7.49.1\\build\\libcurl\\simple.exe' (target: libcurl.simple) could not be found
ninja export: program 'D:\\Downloads\\curl-7.49.1\\build\\libcurl\\simplepost.exe' (target: libcurl.simplepost) could not be found
ninja export: program 'D:\\Downloads\\curl-7.49.1\\build\\libcurl\\simplessl.exe' (target: libcurl.simplessl) could not be found
ninja export: program 'D:\\Downloads\\curl-7.49.1\\build\\libcurl\\smooth-gtk-thread.exe' (target: libcurl.smooth-gtk-thread) could not be found
ninja export: program 'D:\\Downloads\\curl-7.49.1\\build\\libcurl\\smtp-expn.exe' (target: libcurl.smtp-expn) could not be found
ninja export: program 'D:\\Downloads\\curl-7.49.1\\build\\libcurl\\smtp-mail.exe' (target: libcurl.smtp-mail) could not be found
ninja export: program 'D:\\Downloads\\curl-7.49.1\\build\\libcurl\\smtp-multi.exe' (target: libcurl.smtp-multi) could not be found
ninja export: program 'D:\\Downloads\\curl-7.49.1\\build\\libcurl\\smtp-ssl.exe' (target: libcurl.smtp-ssl) could not be found
ninja export: program 'D:\\Downloads\\curl-7.49.1\\build\\libcurl\\smtp-tls.exe' (target: libcurl.smtp-tls) could not be found
ninja export: program 'D:\\Downloads\\curl-7.49.1\\build\\libcurl\\smtp-vrfy.exe' (target: libcurl.smtp-vrfy) could not be found
ninja export: program 'D:\\Downloads\\curl-7.49.1\\build\\libcurl\\synctime.exe' (target: libcurl.synctime) could not be found
ninja export: program 'D:\\Downloads\\curl-7.49.1\\build\\libcurl\\threaded-ssl.exe' (target: libcurl.threaded-ssl) could not be found
ninja export: program 'D:\\Downloads\\curl-7.49.1\\build\\libcurl\\url2file.exe' (target: libcurl.url2file) could not be found
ninja export: program 'D:\\Downloads\\curl-7.49.1\\build\\libcurl\\usercertinmem.exe' (target: libcurl.usercertinmem) could not be found
ninja export: program 'D:\\Downloads\\curl-7.49.1\\build\\libcurl\\xmlstream.exe' (target: libcurl.xmlstream) could not be found
NiklasRosenstein commented 7 years ago

Craftr 2.x won't check if the executable doesn't exist for now.