Commit graph

293 commits

Author SHA1 Message Date
Graham Nelson
bb8c1e9327 Merge branch 'master' of https://github.com/ganelson/inweb 2022-05-02 18:47:51 +01:00
Graham Nelson
e19fb0cf96 Added $(CFLAGS) to invocations of clang on macos platforms 2022-05-02 18:46:54 +01:00
Philip Chimento
e6221eae4a
Merge pull request #8 from Screwtapello/use-cc-on-linux
Use $(CC) as the compiler on Linux.
2022-05-01 15:05:29 -07:00
Graham Nelson
ab132fcd9c
Merge pull request #9 from DavidKinder/master
Fix further instances of ISO-Latin-1 / UTF-8 mixed up
2022-05-01 22:04:10 +01:00
David Kinder
2e399f91a0 Fix further instances of ISO-Latin-1 / UTF-8 mixed up 2022-05-01 20:52:40 +01:00
Graham Nelson
3532dcafa6 Fix for bug in locale string-writing 2022-05-01 16:58:44 +01:00
Tim Allen
23c6e066bd Use $(CC) as the compiler on Linux.
While other platforms may have a standard compiler that can be hardcoded,
Linux systems may want to switch between gcc and clang, or even a wrapper
script for producing portable static binaries like musl-gcc.

Using the standard $(CC) variable for the compiler name makes it easy to
override the compiler choice without having to modify makefiles.
2022-05-02 00:17:58 +10:00
Graham Nelson
17aa1c34b7 Changed -isysroot to use Xcode Command Line tools, not Xcode.app 2022-04-30 22:38:54 +01:00
Graham Nelson
07ec28d140 Added Apple Silicon support 2022-04-30 17:12:14 +01:00
Graham Nelson
9f4ca7c845 Again 2022-04-30 15:38:55 +01:00
Graham Nelson
4577537c09 To remove one potential compiler warning 2022-04-30 15:19:23 +01:00
Graham Nelson
0fff5c3216
Merge pull request #6 from DavidKinder/master
Remove Windows-specific workarounds from HTML generation
2022-04-30 13:58:09 +01:00
Graham Nelson
1237824333 Beginning work on better building for Apple Silicon Macs 2022-04-30 11:41:53 +01:00
David Kinder
dce809882a Remove Windows-specific Javascript 2022-04-30 11:35:46 +01:00
David Kinder
a714e9aa82 Remove now unused HTML_MAP_FONT_SIZE 2022-04-30 11:35:30 +01:00
Graham Nelson
aec53d3cd2 Removed disclaimer in README.md about not being public yet 2022-04-29 08:20:11 +01:00
Graham Nelson
329441fa66
Merge pull request #4 from ptomato/linux-platform-adjustments
Changes to Linux platform settings
2022-04-28 19:13:33 +01:00
Philip Chimento
993693dd8c Changes to Linux platform settings
I've decided to make some adjustments to the platform settings after
trying to build RPM, DEB, and Flatpak packages. The various packaging
tools rely on being able to set their own optimization, debugging, and
hardening flags via the CFLAGS and LDFLAGS environment variables, so this
brings in that capability.

Additionally, building in a Flatpak environment requires explicitly
linking with the -pthread flag. I'm not sure why this was implicit before,
but I've added it to the linker macro, as it doesn't hurt to specify it
explicitly in any case.
2022-04-28 10:39:23 -07:00
Graham Nelson
60cc499743 Corrected link to GitHub Pages 2022-04-28 16:25:04 +01:00
Graham Nelson
4adc5c9c10 Advanced build to 7.1.0-beta 2022-04-28 16:00:22 +01:00
Graham Nelson
922dbf72de Licence date added 2022-04-28 15:49:28 +01:00
David Kinder
8cb89aa3f9 Fix Windows implementation of Platform::rsync 2022-04-28 06:44:25 +01:00
Philip Chimento
5061faff09
Merge pull request #3 from ptomato/linux-platform-settings
Linux platform settings
2022-04-27 21:01:24 -07:00
Graham Nelson
fd6efb886e Fixed buffer overrun error in regular expression matching 2022-04-26 23:48:42 +01:00
Philip Chimento
86441df336 Platform settings for Linux
This changes the variables in the platform settings to work more like the
ones in the other platforms, and updates their values.
2022-04-25 18:42:56 -07:00
Graham Nelson
d8a4183543 Fixed an undefined behaviour bug appearing only under -O2 optimisation 2022-04-25 23:31:02 +01:00
Graham Nelson
04343a64a5 Allowed parameter-less preprocessor macro definitions 2022-04-25 16:46:46 +01:00
Graham Nelson
839ac15b14 Fixed delinquent test cases to catch up with output change 2022-04-24 12:19:01 +01:00
Graham Nelson
f77f721361 Redrafting 2022-04-24 12:07:47 +01:00
Graham Nelson
a332847c1b Updated README.md 2022-04-24 10:36:52 +01:00
Graham Nelson
7c454a867d Typo fixed 2022-04-24 00:44:16 +01:00
Graham Nelson
ac37350105 Changed first build methodology 2022-04-24 00:40:37 +01:00
Graham Nelson
0cc1077c47 Using new-style readme scripts 2022-04-23 23:41:01 +01:00
Graham Nelson
7b90e88dab Tidied up preprocessor code 2022-04-23 16:13:47 +01:00
Graham Nelson
517341513a Using new-style gitignore scripts 2022-04-23 14:08:38 +01:00
Graham Nelson
e6a2631e0c Further work on makescripts 2022-04-22 23:54:19 +01:00
Graham Nelson
162b0283f3 Migrated to new makescript format 2022-04-22 00:06:45 +01:00
Graham Nelson
0772b434b7 Merge branch 'master' of https://github.com/ganelson/inweb 2022-04-19 22:06:52 +01:00
Graham Nelson
3adb9a7dfa Scanning directories in alphabetical order 2022-04-19 22:06:18 +01:00
Graham Nelson
171dedae83 Removed foundation-test.mk 2022-04-16 18:17:25 +01:00
Graham Nelson
7d1fcb2260 Catching up with recent changes 2022-04-15 00:20:42 +01:00
Graham Nelson
4110147ef6
Merge pull request #2 from ptomato/linux-fixes
More Linux fixes
2022-04-14 23:43:53 +01:00
David Kinder
675b231539 More consistent logic on Windows for when to treat a system() command as Unix-like or not 2022-04-14 14:41:23 +01:00
David Kinder
97b84360ea Reduce core count by one to leave one CPU core idle by default 2022-04-14 08:43:07 +01:00
Philip Chimento
9f982e5c95 Mark strings as const when they underlie streams
In the family of functions that create a text stream from a string (e.g.,
Streams::open_from_ISO_string, Str::new_from_ISO_string) we can mark the
input string as const since it is not supposed to be modified.

I ran into this when experimenting with trying to create a text stream
from the output of "getenv" which is "const char *". I ended up not
needing that, but this seems like a good change nonetheless.
2022-04-13 22:51:33 -07:00
Philip Chimento
9e26459664 Tweak fall-through comment
GCC warns about switch statement fall-throughs unless they are annotated
with a /* fall through */ comment. However, it also has a mode that
understands the comment as long as it has the words "fall through"
somewhere in it. If we slightly tweak the wording of this comment, we can
use that mode to avoid the warning.
2022-04-13 22:51:33 -07:00
Graham Nelson
f57cde99e8 Merge branch 'master' of https://github.com/ganelson/inweb 2022-04-13 23:44:23 +01:00
Graham Nelson
395fc19c2f Minor debugging log changes to avoid compiler warnings 2022-04-13 23:42:22 +01:00
David Kinder
76958ef34a Temporary work-around for Windows to run clang under Cygwin 2022-04-11 20:39:51 +01:00
David Kinder
efa1019db2 Changing clang settings to c11, not c99, for Windows 2022-04-11 20:15:12 +01:00