Here's my patch to do that -One could perhaps edit 'mpy-cross' to provide a 'compile-only' option, emit nothing or at least auto-delete any emitted '.mpy' file.
Code:
cd ~/pico/micropython/mpy-crossmv main.c main.c-originalunzip mpy-cross_main_c-2025-02-23.zipmakeCode:
pi@Pi4B:~/pico/micropython/mpy-cross $ ./build/mpy-cross -husage: ./build/mpy-cross [<opts>] [-X <implopt>] [--] <input filename>...Implementation specific options: emit={bytecode,native,viper} -- set the default code emitter heapsize=<n> -- set the heap size for the GC (default 1048576) compile-only -- do not emit output fileStatistics: Posted by hippy — Sun Feb 23, 2025 5:24 pm