- 30 Apr, 2017 2 commits
-
-
stijn authored
Make qstr generation depend on modifications in mpconfigport.h, mpconfig.h and makeqstrdata.py and if any of those change scan all source files for qstrs again since they might have changed (for example typcially when enabling new features in mpconfig.h). This fixes #2982 for msvc builds.
-
stijn authored
It is not used anywhere and causes a warning about redefinition because it is used in modutimeq.c
-
- 29 Apr, 2017 1 commit
-
-
Paul Sokolovsky authored
-
- 22 Apr, 2017 1 commit
-
-
Damien George authored
Prior to making this a config option it was previously available on these (and all other) ports, and it makes sense to keep it enabled for mpy-cross as well as ports that have a decent amount of space for the code.
-
- 21 Apr, 2017 1 commit
-
-
stijn authored
Add definitions/source files for features which work on the windows ports but weren't yet enabled. UTIME related lines are moved a couple of lines up to make comparision with unix/mpconfigport.h easier in the future.
-
- 11 Apr, 2017 1 commit
-
-
Damien George authored
-
- 01 Apr, 2017 1 commit
-
-
Damien George authored
It can still be overwritten by a port in mpconfigport.h but for almost all cases one can use the provided default.
-
- 23 Mar, 2017 3 commits
-
-
stijn authored
This assures after cleaning all build artefacts (qstr related files, generated version header) have been removed.
-
stijn authored
Instead of having the PlatformToolset property hardcoded to a specific version just set it to the value of DefaultPlatformToolset: this gets defined according to the commandline environment in which the build was started. Instead of just supporting VS2015 the project can now be built by any version from VS2013 to VS2017 and normally future versions as well, without quirks like VS asking whether you want to upgrade the project to the latest version (as was the case when opening the project in VS2017) or not being able to build at all (as was the case when opening the project in VS2013). Also adjust the .gitignore file to ignore any artefacts from VS2017.
-
Krzysztof Blazewicz authored
The -ansi flag is used for C dialect selection and it is equivalent to -std=c90. Because it goes right before -std=gnu99 it is ignored as for conflicting flags GCC always uses the last one.
-
- 02 Mar, 2017 1 commit
-
- 17 Feb, 2017 1 commit
-
-
stijn authored
Since VS2015 update 2 .db files are used for storing browsing info, instead of .sdf files. If users don't specify a location for these files excplicitly they end up in the project directory so ignore them.
-
- 16 Nov, 2016 1 commit
-
-
Damien George authored
-
- 03 Nov, 2016 2 commits
- 29 Oct, 2016 1 commit
-
-
Paul Sokolovsky authored
mp_hal_ticks_ms, mp_hal_ticks_us taken from unix port, mp_hal_ticks_cpu dummy.
-
- 10 Sep, 2016 1 commit
-
-
stijn authored
This also fixes the test failure for vfs_fat_ramdisk.py
-
- 15 Aug, 2016 1 commit
-
-
Damien George authored
This type was used only for the typedef of mp_obj_t, which is now defined by the object representation. So we can now remove this unused typedef, to simplify the mpconfigport.h file.
-
- 22 Jul, 2016 2 commits
-
-
Paul Sokolovsky authored
-
stijn authored
This is a fix for https://github.com/micropython/micropython/issues/2209: by default a file created using open() uses text translation mode so writing \n to it will result in the file having \r\n. This is obviously problematic for binary .mpy files, so provide functions for setting the open mode and use binary mode in mpy-cross' main().
-
- 25 Jun, 2016 1 commit
-
- 17 Jun, 2016 1 commit
-
-
Paul Sokolovsky authored
-
- 15 Jun, 2016 1 commit
-
-
Paul Sokolovsky authored
It has more usages than just qstr extraction, for example, embedding (where people don't care about efficient predefined qstrs).
-
- 08 May, 2016 1 commit
-
-
stijn authored
This will launch about as many compiler instances as there are logical processors on a machine, and as such significantly speeds up compilation.
-
- 25 Apr, 2016 1 commit
-
-
stijn authored
Builds have been broken since reworking autogeneration in c618f91e and related, this gets fixed here by applying similar qstr generation logic for the msvc builds: c files are only preprocessed when changed (or not yet preprocessed) and the concatenated output is fed into makeqstrdefs.py. To speed up this process, the concatenated output is already filtered to contain only lines which makeqstrdefs really needs: this makes the qstr generation stage about twice as fast (checked on different machines).
-
- 16 Apr, 2016 2 commits
-
-
stijn authored
Note this still needs some work: currently all source files are always preprocessed no matter which one actually changed, moreover that happens file by file without any parallellism so builds are painstakingly slow.
-
Jan Čapek authored
- add template rule that converts a specified source file into a qstring file - add special rule for generating a central header that contains all extracted/autogenerated strings - defined by QSTR_DEFS_COLLECTED variable. Each platform appends a list of sources that may contain qstrings into a new build variable: SRC_QSTR. Any autogenerated prerequisities are should be appened to SRC_QSTR_AUTO_DEPS variable. - remove most qstrings from py/qstrdefs, keep only qstrings that contain special characters - these cannot be easily detected in the sources without additional annotations - remove most manual qstrdefs, use qstrdef autogen for: py, cc3200, stmhal, teensy, unix, windows, pic16bit: - remove all micropython generic qstrdefs except for the special strings that contain special characters (e.g. /,+,<,> etc.) - remove all port specific qstrdefs except for special strings - append sources for qstr generation in platform m...
-
- 14 Apr, 2016 1 commit
-
-
Paul Sokolovsky authored
These are *defined* per-port, but why redeclare them again and again.
-
- 13 Apr, 2016 1 commit
-
-
Damien George authored
The config variable MICROPY_MODULE_FROZEN is now made of two separate parts: MICROPY_MODULE_FROZEN_STR and MICROPY_MODULE_FROZEN_MPY. This allows to have none, either or both of frozen strings and frozen mpy files (aka frozen bytecode).
-
- 29 Jan, 2016 1 commit
-
-
Paul Sokolovsky authored
Calling it from mp_init() is too late for some ports (like Unix), and leads to incomplete stack frame being captured, with following GC issues. So, now each port should call mp_stack_ctrl_init() on its own, ASAP after startup, and taking special precautions so it really was called before stack variables get allocated (because if such variable with a pointer is missed, it may lead to over-collecting (typical symptom is segfaulting)).
-
- 26 Jan, 2016 2 commits
-
-
Damien George authored
-
Damien George authored
-
- 27 Dec, 2015 1 commit
-
-
Paul Sokolovsky authored
-
- 26 Dec, 2015 1 commit
-
-
stijn authored
The default bahaviour for debug builds is to show dialog boxes for asserts and invalid parameter handling. This is not so nice in general and causes the Appveyor debug builds to hang because the io\file_seek.py test passes a closed file descriptor to lseek. Disable this behaviour by printing assert messages to the output instead of showing the dialog, and by disabling 'invalid' parameter handling which causes the affected functions to just return an error and set errno appropriately.
-
- 21 Dec, 2015 1 commit
-
-
stijn authored
This builds upon the changes made in 21950463. Using signal() does not produce reliable results so SetConsoleCtrlHandler is used, and the handler is installed only once during initialization instead of removing it in mp_hal_set_interrupt_char when it is not strictly needed anymore, since removing it might lead to Ctrl-C events being missed because they are fired on a seperate thread which might only become alive after the handler was removed.
-
- 18 Dec, 2015 2 commits
-
-
stijn authored
Appveyor is like Travis, but for Windows builds. The appveyor.yml configuration will build the msvc port in all configuration/platform conbinations, and run the tests for each of those.
-
- 17 Dec, 2015 2 commits
-
-
Paul Sokolovsky authored
Compiles with mingw32, tested to work erratically under Wine due to not fully implemented emulation in it.
-
Paul Sokolovsky authored
-
- 14 Dec, 2015 1 commit
-
-
stijn authored
-