Damien George
78718fffb1
py/mkrules: Automatically build mpy-cross if it doesn't exist.
...
Commit 41739506589ec8397613c86d8f682fb7f86c0a9f removed automatic building
of mpy-cross, which rebuilt it whenever any of its dependent source files
changed.
But needing to build mpy-cross, and not knowing how, is a frequent issue.
This commit aims to help by automatically building mpy-cross only if it
doesn't exist. For Makefiles it uses an order-only prerequisite, while
for CMake it uses a custom command.
If MICROPY_MPYCROSS (which is what makemanifest.py uses to locate the
mpy-cross executable) is defined in the environment then automatic build
will not be attempted, allowing a way to prevent this auto-build if needed.
Thanks to Trammell Hudson aka @osresearch for the original idea; see #5760 .
Signed-off-by: Damien George <damien@micropython.org>
2021-08-07 20:25:32 +10:00
..
2021-04-27 23:51:52 +10:00
2021-06-05 11:03:04 +10:00
2021-06-05 11:03:04 +10:00
2021-06-05 11:03:04 +10:00
2021-06-05 11:03:04 +10:00
2021-05-20 23:43:25 +10:00
2020-06-27 00:24:04 +10:00
2020-06-27 00:24:04 +10:00
2020-06-27 00:24:04 +10:00
2020-06-27 00:24:04 +10:00
2021-04-27 23:51:52 +10:00
2021-06-25 10:58:22 +10:00
2021-06-24 23:01:04 +10:00
2021-07-31 16:51:58 +10:00
2021-05-30 10:38:48 +10:00
2021-07-15 00:12:41 +10:00
2021-02-04 22:46:42 +11:00
2021-06-05 11:03:04 +10:00
2021-01-29 23:57:10 +11:00
2020-10-22 11:47:36 +02:00
2021-07-19 23:18:59 +10:00
2020-04-18 22:42:24 +10:00
2021-06-18 14:15:37 +10:00
2021-02-05 15:46:56 +11:00
2020-06-16 23:18:01 +10:00
2020-10-22 11:53:16 +02:00
2020-06-16 22:02:24 +10:00
2020-04-20 10:32:49 +10:00
2020-08-29 15:18:01 +10:00
2021-06-25 10:50:54 +10:00
2021-07-05 10:41:31 -05:00
2020-10-10 00:16:26 +11:00
2021-04-27 23:51:52 +10:00
2021-08-07 20:25:32 +10:00
2021-08-07 20:25:32 +10:00
2021-08-07 20:25:32 +10:00
2021-07-15 00:12:41 +10:00
2020-04-23 11:24:25 +10:00
2021-03-26 13:48:34 +11:00
2020-12-14 13:30:56 +11:00
2021-05-10 13:07:16 +10:00
2021-07-15 00:12:41 +10:00
2021-06-19 09:43:44 +10:00
2020-04-23 11:24:25 +10:00
2021-08-07 13:52:16 +10:00
2021-06-24 23:14:01 +10:00
2020-09-18 17:20:34 +10:00
2020-12-07 23:32:06 +11:00
2021-08-07 13:52:16 +10:00
2021-07-15 00:12:41 +10:00
2021-06-24 23:01:04 +10:00
2020-04-18 22:36:14 +10:00
2020-05-14 21:48:05 +10:00
2021-03-11 12:51:10 +11:00
2021-05-18 11:46:30 +10:00
2021-05-18 11:52:00 +10:00
2021-04-27 23:51:52 +10:00
2021-07-15 00:12:41 +10:00
2021-05-18 10:18:56 +10:00
2020-09-25 12:23:11 +10:00
2021-03-26 13:48:34 +11:00
2020-06-27 01:03:10 +10:00
2021-08-07 13:52:16 +10:00
2021-07-15 00:12:41 +10:00
2021-02-04 22:46:42 +11:00
2021-06-25 10:58:22 +10:00
2021-07-15 00:12:41 +10:00
2021-07-15 00:12:41 +10:00
2020-05-28 10:02:14 +10:00
2020-11-11 22:18:24 +11:00
2021-06-24 23:01:04 +10:00
2020-05-28 10:02:14 +10:00
2021-08-07 13:52:16 +10:00
2020-09-04 00:10:24 +10:00
2021-04-27 23:51:52 +10:00
2021-03-26 13:48:34 +11:00
2021-07-15 00:12:41 +10:00
2020-04-13 22:19:37 +10:00
2021-07-15 00:12:41 +10:00
2020-12-07 23:32:06 +11:00
2021-08-07 13:52:16 +10:00
2021-04-27 23:51:52 +10:00
2020-10-01 15:26:43 +10:00
2020-09-11 23:00:03 +10:00
2021-04-27 23:51:52 +10:00
2021-02-04 22:46:42 +11:00
2021-06-19 09:43:44 +10:00
2021-04-09 13:08:35 +10:00
2021-07-12 17:08:10 +10:00
2021-07-15 00:12:41 +10:00
2021-01-30 13:40:48 +11:00
2021-05-30 11:50:51 +10:00
2020-06-05 14:04:20 +10:00
2021-07-23 12:40:00 +10:00
2021-07-15 00:12:41 +10:00
2021-06-19 09:49:00 +10:00
2020-10-22 11:40:56 +02:00
2020-10-22 11:40:56 +02:00
2021-06-24 23:01:04 +10:00
2021-06-24 23:01:04 +10:00
2021-06-05 11:03:09 +10:00
2020-04-27 23:58:46 +10:00
2021-03-31 00:26:01 +11:00
2021-07-15 00:12:41 +10:00
2020-10-22 11:47:36 +02:00