mirror of
https://github.com/devkitPro/wut.git
synced 2026-04-25 16:20:20 -05:00
2.8 KiB
2.8 KiB
wut 1.0.0-beta9
Breaking changes
- coreinit's
exitis no longer defined in<coreinit/exit.h>. Please use<stdlib.h>instead, which pulls in newlib's exit. - RPL import sections (
.fimport_coreinitetc.) are now garbage-collected when using wut-tools 1.1.0 or above (required). Code relying on weak links to Cafe functions may exhibit different behaviour. snd_coreandsnd_userare no longer linked, due to naming conflicts withsndcore2andsnduser2. wut has never shipped headers for these libraries, but if you are using them, please switch tosndcore2andsnduser2.- Changes to CMake's linker flags may cause existing build trees to fail. Please delete any old build files and re-run CMake.
- Two new symbols,
__rpx_startand__rpl_start, are now used internally by the toolchain, while_startis now undefined. As usual, applications are strongly discouraged from prefixing any symbol with two underscores, in order to avoid conflicts of this type.
Deprecations
WUT_ROOTshould no longer be defined in the user's environment, and will be set to$DEVKITPRO/wutinternally. CMake lists and makefiles that use$WUT_ROOT/shareto findwut.mkorwut.toolchain.cmakeshould be changed to$DEVKITPRO/wut/share.- All of wut's static libraries (
-lcoreinit,-lwhb, etc.) have been merged into a singlelibwut, which gets automatically linked in for all builds. While empty static libraries have been provided for CMake builds to ease the transition, these will be removed eventually. Applications should remove the build flags to link any of wut's libraries. - Similarly, wut's build configuration options (devoptab, wutmalloc, newlib) are now integrated into
libwut. For CMake builds, thewut_enable_*macros will now log a deprecation warning, and should be removed as soon as possible. - Use of
wut.mkas a build system is now deprecated. Applications should move towut_rulesand devkitPro-style makefiles, such as those in the samples.wut.mkwill not be updated further, and will be removed in a future release.
Other changes
- Builds refactored: wut now uses Makefiles to build itself, as well as providing a devkitPro-style
wut_rulesfile - see thesamples/makefolder. The cmake samples are now insamples/cmake. - A new linking feature,
__rplwrap, was added to help deal with conflicts between newlib's and Cafe's functions. Because of this, wut 1.0.0-beta9 requires wut-tools 1.1.0 or newer. - Using rplwrap, newlib's
exitis now correctly chained with coreinit's - calls likeatexitshould work; whether callingexitor just returning frommain. Applications using coreinit's_Exitare encouraged to migrate to a normalexitcall. - A new header file,
<coreinit/codegen.h>, has been added and documented for OSCodegen functionality.