summaryrefslogtreecommitdiffstatshomepage
path: root/unix/main.c
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-02-01 20:06:55 +0200
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-02-01 20:09:45 +0200
commited1239fce60f8cfe710637a5e0591f2b2a64b65d (patch)
tree4fad2f82e1a97c7b6da705ddd46baea42380a237 /unix/main.c
parent382b3d00ed9a2f31dcedbf65ce82cbada9b6dbdf (diff)
downloadmicropython-ed1239fce60f8cfe710637a5e0591f2b2a64b65d.tar.gz
micropython-ed1239fce60f8cfe710637a5e0591f2b2a64b65d.zip
Add mpconfigport.mk file to configure which modules to include into build.
Proof of concept, controls "ffi" module as one which requires external dependencies.
Diffstat (limited to 'unix/main.c')
-rw-r--r--unix/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/unix/main.c b/unix/main.c
index cd45e3be86..5ca8115368 100644
--- a/unix/main.c
+++ b/unix/main.c
@@ -242,7 +242,9 @@ int main(int argc, char **argv) {
file_init();
rawsocket_init();
+#if MICROPY_MOD_FFI
ffi_init();
+#endif
// Here is some example code to create a class and instance of that class.
// First is the Python, then the C code.