Commit Graph

185 Commits (master)

Author SHA1 Message Date
Daniel Kolesa 31e19a5ba4 rule_dup fix 2015-12-27 18:20:47 +01:00
Daniel Kolesa c21d6dc054 print_help takes a bool 2015-12-26 14:29:55 +01:00
Daniel Kolesa 649745d33c cleanups 2015-12-23 13:52:27 +01:00
Daniel Kolesa 5cf74abac6 print help to stderr on wrong arg 2015-12-22 15:05:08 +01:00
Daniel Kolesa cb5b89ce3c no need for full namespace 2015-12-21 14:13:38 +01:00
Daniel Kolesa 6c40623371 use Bytecode object 2015-12-20 00:21:39 +01:00
Daniel Kolesa 1812c06bf6 use the new API for bytecode objects 2015-12-19 16:06:50 +01:00
Daniel Kolesa cc1cfe1328 fix cubescript func refcount 2015-12-18 15:06:42 +01:00
Daniel Kolesa 2e98d0aecd use new libcubescript api 2015-12-16 19:05:09 +00:00
Daniel Kolesa 7fe6ecdf7e small cleanup 2015-12-14 19:20:43 +00:00
Daniel Kolesa bfe9d5aff2 switch to c++14 and make use of generalized lambda capture 2015-12-13 21:10:18 +00:00
Daniel Kolesa 86b28e8e00 remove unnecessary casts 2015-12-08 21:36:55 +00:00
Daniel Kolesa 946aa50b58 don't need the this 2015-12-07 22:37:38 +00:00
Daniel Kolesa ea8c0ff002 abuse inheritance a little 2015-12-07 21:41:37 +00:00
Daniel Kolesa a83cf836cd small simplification 2015-12-06 19:23:03 +00:00
Daniel Kolesa e91b28266f minor fix 2015-12-04 21:59:03 +00:00
Daniel Kolesa a562f4623d better help handling 2015-12-03 19:09:44 +00:00
Daniel Kolesa c0323d2d75 dedup some code 2015-12-02 20:38:10 +00:00
Daniel Kolesa ccb2f7e0e8 minor cleanup 2015-12-01 21:55:19 +00:00
Daniel Kolesa f1af0b747e remove usage of getopt (replace with manual handling until arg parser is complete) 2015-11-30 21:14:59 +00:00
Daniel Kolesa 421b5957ab small cleanup 2015-11-28 20:51:12 +00:00
Daniel Kolesa 4fe2b2f7db merge tpool.hh into main.cc 2015-11-27 22:11:46 +00:00
Daniel Kolesa 52ecc016e8 minor cleanup 2015-11-25 20:37:01 +00:00
Daniel Kolesa 3d9bbc465a use ConstCharRange 2015-11-24 20:14:37 +00:00
Daniel Kolesa c6dd8111bb no need to check this anymore 2015-11-23 21:26:51 +00:00
Daniel Kolesa 550cab584b rule_add cleanup 2015-11-23 21:26:07 +00:00
Daniel Kolesa 6867946e97 make actions always execute regardless of files existing 2015-11-21 18:30:11 +00:00
Daniel Kolesa b3bf83dfc5 improve the duprule command 2015-11-20 16:49:30 +00:00
Daniel Kolesa 077460f53c remove usage of limits.h 2015-11-17 20:19:58 +00:00
Daniel Kolesa 2ed36fe7c9 remove rule-, add duprule to duplicate a rule with new deps 2015-11-14 01:28:07 +00:00
Daniel Kolesa 3f80d998a2 fix incorrect rule find logic (always prefer "exact" rules) 2015-11-14 01:08:27 +00:00
Daniel Kolesa 4b6d9c466a cleanups 2015-11-09 18:51:55 +00:00
Daniel Kolesa 98e99f7c49 don't disown (allocator may not be the same) 2015-11-08 13:45:59 +00:00
Daniel Kolesa ccaae1e418 extreplace is not part of globs system 2015-11-07 16:57:29 +00:00
Daniel Kolesa adf3c0f068 default val arg for getenv, add extreplace for extension subst 2015-11-06 19:38:37 +00:00
Daniel Kolesa d1bb66976e format 2015-11-05 18:43:58 +00:00
Daniel Kolesa ed8b0a428e cleanup rule counters 2015-11-04 17:46:01 +00:00
Daniel Kolesa 201e57916c get rid of the scope hack 2015-11-03 18:34:16 +00:00
Daniel Kolesa d016d629c9 comment the capture behavior 2015-11-01 18:47:31 +00:00
Daniel Kolesa e32a5a86ff no need to disown, we can just copy 2015-11-01 18:45:03 +00:00
Daniel Kolesa 492789f0a4 format fixes 2015-10-31 19:43:39 +00:00
Daniel Kolesa b2814ffe2f add new "depend" command to specify deps 2015-10-30 20:28:18 +00:00
Daniel Kolesa 7d9fac6ae0 add invoke command to exec a rule/action and wait for it 2015-10-29 17:34:33 +00:00
Daniel Kolesa 96c1066c37 default rule is now called default 2015-10-27 18:49:46 +00:00
Daniel Kolesa 1c0772d2e7 add support for actions 2015-10-26 17:58:47 +00:00
Daniel Kolesa 554441518d cubefile is now called obuild.cfg 2015-10-23 20:11:14 +01:00
Daniel Kolesa e758d6e3d8 main func cleanup 2015-10-21 21:09:21 +01:00
Daniel Kolesa d5ec6eea73 per-state threadpool 2015-10-20 22:05:53 +01:00
Daniel Kolesa e348f58108 cleanup 2015-10-18 01:01:11 +02:00
Daniel Kolesa 27605ee5af put most state into ObState 2015-10-16 00:36:39 +02:00
Daniel Kolesa 080153a373 put ignore_env into ObState 2015-10-16 00:09:16 +02:00
Daniel Kolesa 4028bdef7d introduce rule cache (no need to figure out rlist every time) 2015-10-15 10:42:43 +02:00
Daniel Kolesa 49812b6b40 test commandn 2015-10-13 21:23:41 +01:00
Daniel Kolesa 3c9e6ea404 unify rule add funcs 2015-10-07 11:47:14 +01:00
Daniel Kolesa 2a84040028 rule- for dep-less rule definitions 2015-10-06 12:32:47 +01:00
Daniel Kolesa dfb94f28b3 more correct and more efficient rule matching 2015-10-03 17:25:52 +01:00
Daniel Kolesa 86c0d6b635 formatting 2015-10-02 19:25:08 +01:00
Daniel Kolesa 9199b76648 mark static 2015-10-01 19:08:44 +01:00
Daniel Kolesa faabe418b2 only use N jobs instead of N + 1 when not explicit (where N is number of CPUs) 2015-09-27 18:33:28 +01:00
Daniel Kolesa 2f5a95327b add numcpus and numjobs 2015-09-26 15:13:17 +01:00
Daniel Kolesa b97b71d281 add some environment functionality 2015-09-21 20:44:48 +01:00
Daniel Kolesa 88c2656862 add -e to execute strings 2015-09-20 20:54:19 +01:00
Daniel Kolesa 79914d4e76 fix 2015-09-14 01:31:50 +01:00
Daniel Kolesa ed326a98d8 fix 2015-09-12 16:23:18 +01:00
Daniel Kolesa 582867ff81 split glob matching into its own file 2015-09-10 18:55:49 +01:00
Daniel Kolesa 3e4073cd56 fix 2015-09-05 03:35:57 +01:00
Daniel Kolesa b70315d28d do not pass data() 2015-09-04 19:29:51 +01:00
Daniel Kolesa 789204075a use ostd::filesystem 2015-09-04 18:59:05 +01:00
Daniel Kolesa e817b51e5a cleanups 2015-09-01 18:50:00 +01:00
Daniel Kolesa 9c1ce90bfe updates 2015-08-31 14:47:39 +01:00
Daniel Kolesa 5f2417bf9e concat all args when using globs 2015-08-25 16:07:15 -07:00
Daniel Kolesa 92da426ae8 update 2015-08-25 00:19:44 -07:00
Daniel Kolesa 87d34dede1 initial parallel build support 2015-08-24 14:11:17 -07:00
Daniel Kolesa 19fb1100f8 add basic thread pool impl for parallel compilation 2015-08-24 00:44:10 -07:00
Daniel Kolesa a072cfeaaf add basic option parsing 2015-08-23 20:54:03 -07:00
Daniel Kolesa 9c272792ac more correct glob matching 2015-08-23 11:54:23 -07:00
Daniel Kolesa 989433022c glob matching support 2015-08-23 01:03:30 -07:00
Daniel Kolesa 8e6b107b48 more cleanups 2015-08-22 00:31:33 -07:00
Daniel Kolesa 4cab581d58 more cleanups 2015-08-21 12:05:24 -07:00
Daniel Kolesa 456e9ef11b move more stuff to state struct 2015-08-21 12:02:31 -07:00
Daniel Kolesa a3317607d0 cleanups 2015-08-21 11:14:24 -07:00
Daniel Kolesa 349e9b7851 start moving funcs into ObState 2015-08-20 12:59:15 -07:00
Daniel Kolesa cf8af6baf9 use find_last 2015-08-16 11:35:39 -07:00
Daniel Kolesa 7ea22b694b better error handling 2015-08-15 17:06:42 -07:00
Daniel Kolesa 630717bace add initial version of octabuild 2015-08-14 02:54:00 +01:00