Commit Graph

8 Commits

Author SHA1 Message Date
Michael Forney e5b9ffd458 elftoolchain: Update to latest git 2021-05-01 01:48:08 -07:00
Michael Forney 1f2e769865 openbsd: Explicitly list the libc headers that are required
Previously, we just added the openbsd header directories to the
search path with -idirafter to prevent openbsd headers from being
used where we already have musl headers.

However, if the system had its own version of the headers (such as
sys/tree.h), those would get preferred over the openbsd versions,
which may result in build failures due to slight incompatibilities.

To fix this, just isolate the few headers we do need into their own
directory, and include it normally (with -I/-isystem).
2020-10-01 13:36:42 -07:00
Michael Forney 3ff8532c91 Use -Wpedantic over -pedantic 2020-02-20 20:15:50 -08:00
Michael Forney 051963c7fe Add support for building multiple configurations
Now, you can build in separate directories per configuration:

	mkdir foo
	(cd foo && ../setup.lua)
	samu -C foo
2020-01-29 22:14:33 -08:00
Michael Forney f4720910b9 Update ninja requirement to 1.8.0 and don't bother with atomic outputs
Since ninja 1.8.0[0] and samurai 0.2[1], output mtime is always
recorded after a job succeeds, and outputs are considered dirty if
the recorded mtime is older than any input. This means that even
if a command partially writes its output then fails (for example,
if run with stdout redirected to a file), it will still get re-run
during the next build.

This means that outputs no longer have to be written atomically
(i.e. renamed into place) in order to ensure a correct build, and
we can drop the idiom `command >$out.tmp && mv $out.tmp $out`.

[0] https://github.com/ninja-build/ninja/commit/04d886b11041bb59d01df794cce7a1e8cad2250d
[1] https://github.com/michaelforney/samurai/commit/799bc5a4719b90a1026c129b55b92c0bccf97eeb
2019-11-17 15:24:25 -08:00
Michael Forney de8c2a826c elftoolchain: Fix a few portability issues 2019-07-03 02:43:39 -07:00
Michael Forney c957c486be Use libelf from elftoolchain 2019-06-09 22:43:05 -07:00
Michael Forney 2e6b6a5e8a Add elftoolchain 0.7.1 2019-06-09 22:43:05 -07:00