Groups | Search | Server Info | Login | Register
Groups > comp.arch.embedded > #32421
| From | George Neuner <gneuner2@comcast.net> |
|---|---|
| Newsgroups | comp.arch.embedded |
| Subject | Re: Improving build system |
| Date | 2025-05-14 15:21 -0400 |
| Organization | i2pn2 (i2pn.org) |
| Message-ID | <v7m92khajsmlomgacvp2icknf488qa39tu@4ax.com> (permalink) |
| References | <vvvq5j$1lml0$1@dont-email.me> <1001m9t$2drv1$1@dont-email.me> |
On Wed, 14 May 2025 11:03:56 +0200, David Brown <david.brown@hesbynett.no> wrote: >1. > >Windows path naming is insane. Fortunately, you can almost always >override it. Whenever you install any serious program in Windows, >especially if you ever want to refer to it from the command line, batch >files, makefiles, etc., avoid names with spaces or "awkward" characters. > I recommend making top-level directories like "progs" or "compilers" >and putting the tools in there as appropriate. This also makes it >vastly easier to copy tools to other machines. And since you should >never upgrade your toolchains - merely add new versions to your >collection, in separate directories - it is easier if they are better >organised. Just note that NTFS *does* have a limit on the number of entries in the root directory of the drive. Offhand, I don't recall what is the limit [for some reason 127 is stuck in my head] but note that the typical Windows installation has only about ~20 folders in C:\. Subdirectories, however, effectively are unlimited. A handful of extra folders in the drive root certainly will not cause any problem, but just don't try to install lots of software to separate folders directly under the drive root. >2. > >You don't need to use bash or other *nix shells for makefile or other >tools if you don't want to. When I do builds on Windows, I run "make" >from a normal command line (or from an editor / IDE). It is helpful to >have msys2's usr/bin on your path so that make can use *nix command-line >utilities like cp, mv, sed, etc. But if you want to make a minimal >build system, you don't need a full msys2 installation - you only need >the utilities you want to use, and they can be copied directly (unlike >with Cygwin or WSL). A number of common Unix utilities are available as native Windows executables, so a POSIX environment like msys2 or mingw is not even needed [unless you want it for some other purpose, 8-) ]. https://sourceforge.net/projects/unxutils/ >Of course you /can/ use fuller shells if you want. But don't make your >makefiles depend on that, as it will be harder to use them from IDEs, >editors, or any other automation. Also note that, on Windows, Powershell is able to launch programs much faster than CMD. [I don't know why, just that it does.]
Back to comp.arch.embedded | Previous | Next — Previous in thread | Next in thread | Find similar
Improving build system pozz <pozzugno@gmail.com> - 2025-05-13 17:57 +0200
Re: Improving build system Nicolas Paul Colin de Glocester <Spamassassin@irrt.De> - 2025-05-13 22:48 +0200
Re: Improving build system David Brown <david.brown@hesbynett.no> - 2025-05-14 11:03 +0200
Re: Improving build system George Neuner <gneuner2@comcast.net> - 2025-05-14 15:21 -0400
Re: Improving build system David Brown <david.brown@hesbynett.no> - 2025-05-15 09:48 +0200
Re: Improving build system Nioclás Pól Caileán de Ghloucester <Spamassassin@irrt.De> - 2025-07-04 18:38 +0200
Re: Improving build system pozz <pozzugno@gmail.com> - 2025-05-14 23:51 +0200
Re: Improving build system Nicolas Paul Colin de Glocester <Spamassassin@irrt.De> - 2025-05-15 01:00 +0200
Re: Improving build system David Brown <david.brown@hesbynett.no> - 2025-05-15 11:17 +0200
Re: Improving build system Nicolas Paul Colin de Glocester <Spamassassin@irrt.De> - 2025-05-16 12:21 +0200
Re: Improving build system David Brown <david.brown@hesbynett.no> - 2025-05-16 14:42 +0200
Re: Improving build system David Brown <david.brown@hesbynett.no> - 2025-05-15 11:03 +0200
Re: Improving build system pozz <pozzugno@gmail.com> - 2025-05-15 23:25 +0200
Re: Improving build system David Brown <david.brown@hesbynett.no> - 2025-05-16 11:12 +0200
Re: Improving build system pozz <pozzugno@gmail.com> - 2025-05-16 12:46 +0200
Re: Improving build system David Brown <david.brown@hesbynett.no> - 2025-05-16 15:30 +0200
Re: Improving build system pozz <pozzugno@gmail.com> - 2025-05-16 16:17 +0200
Re: Improving build system pozz <pozzugno@gmail.com> - 2025-05-16 15:45 +0200
Re: Improving build system David Brown <david.brown@hesbynett.no> - 2025-05-16 17:20 +0200
Re: Improving build system pozz <pozzugno@gmail.com> - 2025-05-17 10:56 +0200
Re: Improving build system Stefan Reuther <stefan.news@arcor.de> - 2025-05-14 18:06 +0200
csiph-web