develop/ktcc: Post-SVN tidy #425
Reference in New Issue
Block a user
Delete Branch "ace-dent/kolibrios-gitea:PR-TidySVN-develop-3"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
trunkinto root directory..gitea/workflows/.CRLF>LF, so best to view diffs with whitespace changes hidden.(Work towards #75, point 3)
This PR is split (/cherry picked) from the monolithic PR #251 - for easier merging! 🤞
This part is just focused on
develop/ktcc, as it affects many files.O_O
Please address these before merge:
programs/develop/ktcc/source/lib/buildtcclib1.bat, replace the hardcoded absolute path (D:\...) and the outdated...\ktcc\libc\kos32-tcc.exelocation with a portable relative path to the new compiler location (...\ktcc\bin\kos32-tcc.exe).programs/develop/ktcc/source/lib/buildtcclib1.bat.contrib/C_Layer/EXAMPLE/boxlib/boxlib.c, update the TCC samples comment path to the actual current location (it now points to a non-existing path).Also, yes, 700 changed files is something new :()
Thanks @Burer
Points 1 and 2 re.
programs/develop/ktcc/source/lib/buildtcclib1.bat~ I'm reluctant to touch this file. The path has long been broken (10 years!!); I'm also not sure where the binary target should be (probablyprograms/develop/ktcc/bin/kos32-tcc.exe?). There is no significant trailing whitespace!? It also doesn't look like a valid Windows batch script... I don't really want to start fixing things outside of the scope of this PR, especially when I don't understand them.Point 3. Fixed.
According to the changes, the programs/develop/ktcc/source/Tupfile.lua file has been moved unchanged. But the file contains the relative path "../../../.."
the same problem with programs/develop/ktcc/libc.obj/source/crt/crt0.asm and the rest of the files on fasm
Thanks @Doczom - will investigate.
04b128df22to78348d502a@Doczom - changing the
tupfilebroke the build... so I think the path was correct!? 🤷🏼♂️I have fixed all the
.asmfiles I could find in ktcc with includes (commit). Please check carefully!! 🙏not fixed
SDK_DIR:= $(abspath ../../../../../contrib/sdk)in programs/develop/ktcc/source/Makefile.kos32
78348d502ato13af727fca13af727fcatoc8002f9b9cThanks @Doczom. Fixed.
I also scanned the
ktccdirectory withgit grep -F '../../..'and found one more; I'm confident everything is now correct. 🤞c8002f9b9ctodd920b036d@Doczom & developer team - Please squash the commits when merging, using the PR's first comment as the commit message (default).
programs/other/tte/Makefilehas a broken include path in theTCCtarget after the ktcc migration.-I ../../develop/ktcc/libc/include(in425.diff)ktcc/libc.obj/include, notktcc/libc/include.So
make TCCforttewill fail to find libc headers.Expected path:
-I ../../develop/ktcc/libc.obj/include.In my opinion, this does not apply to this PR
@Burer - I think the path in
programs/other/tte/Makefilewas broken ~4yrs ago when turbocat deleted some files but did not update the 6yr old makefile. It does seem thatprograms/develop/ktcc/libc.obj/includehas most of those original files, so is a reasonable match.