aboutsummaryrefslogtreecommitdiff
path: root/mk
AgeCommit message (Collapse)Author
2021-03-01Merge pull request #4582 from puckipedia/cppflagsEelco Dolstra
mk: add support for CPPFLAGS
2021-03-01Merge remote-tracking branch 'origin/ca/move-tests-to-their-own-directory'Eelco Dolstra
2021-03-01Move the CA tests to a sub-directoryregnat
Requires a slight update to the test infra to work properly, but having the possibility to group tests that way makes the whole thing quite cleaner imho
2021-02-26Revert "Add support for building JARs from Java sources"Puck Meerburg
This reverts commit 259086de841d155f7951c2cc50f799a4631aa512.
2021-02-26mk: add support for CPPFLAGSPuck Meerburg
2020-12-03Remove 'dist' targetEelco Dolstra
We're not producing source tarballs anymore so this has been bitrotting.
2020-10-06mk/precompiled-headers.mk: Remove special handling for clangEelco Dolstra
2020-10-06mk/precompiled-headers.mk: Fix clang testEelco Dolstra
"clang++" includes the string "g++" so this test didn't work properly. However the separate handling of clang might not be needed anymore...
2020-09-21Disable precompiled headers in 'nix develop'Eelco Dolstra
They're still enabled in regular builds though.
2020-08-28Close stdin while running testsEelco Dolstra
For some reason, the bash shell started by 'nix develop' sometimes reads from stdin, which can hang.
2020-07-25Allow PRECOMPILE_HEADERS in cross-compilationMatthew Bauer
In cross, CXX will look like aarch64-unknown-linux-gnu-g++. We could run some command to check what kind of compiler it is, but for now we can just check if g++ is anywhere in the string. I couldn’t find any "ends with" for makefile, so it can be anywhere in CXX.
2020-07-03Shorten the path to the test rootregnat
Fix a socket length failure on the OSX builders
2020-07-03Fix the test dependenciesregnat
Reuse the pre-existing list rather than the one written as part of #3777
2020-07-02Run the tests in parallelregnat
Cause the time needed to run the testsuite to drop from ~4mins to ~40s
2020-06-09Prelink static libraries into an object fileMatthew Bauer
This combines the *.o into a big .o producing one translation unit. This preserve our unused static initializers, as specified in the C++ standard: If no variable or function is odr-used from a given translation unit, the non-local variables defined in that translation unit may never be initialized (this models the behavior of an on-demand dynamic library). Note that this is very similar to how the --whole-archive flag works. One advantage of this is that users of the final .a library don’t have to worry about specifying --whole-archive, or that we have unused static initializers at all!
2020-05-08Don't install unit testsEelco Dolstra
2020-05-08make check: Run unit testsEelco Dolstra
2020-03-30Remove global -I flagsEelco Dolstra
(cherry picked from commit 2c692a3b144523bca68dd6de618124ba6c9bb332)
2020-03-13mk/README.md: RemoveEelco Dolstra
The make-rules repo is not maintained.
2019-12-05Fix precompiled-headers generationEelco Dolstra
It's now regenerated when util.hh changes, and is ordered after config.h to fix a race.
2019-11-07Fix Perl bindingsEelco Dolstra
2019-11-07Precompile headersEelco Dolstra
This cuts 'make install -j6' on my laptop from 170s to 134s.
2019-07-03mk: add support for passing LDFLAGS to libs and binsSergei Trofimovich
autotools-based systems usually allow user to append own LDFLAGS like LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu" at ./configure stage This change plumbs LDFLAGS through similar to existing CXXFLAGS variable. Signed-off-by: Sergei Trofimovich <siarheit@google.com>
2019-02-13Support --disable-shared flag.Matthew Bauer
This tells Nix to not build the shared libraries.
2018-04-08Fix missing $DESTDIR when installing programsAndrew Dunham
2018-02-08Add plugins to make Nix more extensible.Shea Levy
All plugins in plugin-files will be dlopened, allowing them to statically construct instances of the various Register* types Nix supports.
2018-01-16Add pure evaluation modeEelco Dolstra
In this mode, the following restrictions apply: * The builtins currentTime, currentSystem and storePath throw an error. * $NIX_PATH and -I are ignored. * fetchGit and fetchMercurial require a revision hash. * fetchurl and fetchTarball require a sha256 attribute. * No file system access is allowed outside of the paths returned by fetch{Git,Mercurial,url,Tarball}. Thus 'nix build -f ./foo.nix' is not allowed. Thus, the evaluation result is completely reproducible from the command line arguments. E.g. nix build --pure-eval '( let nix = fetchGit { url = https://github.com/NixOS/nixpkgs.git; rev = "9c927de4b179a6dd210dd88d34bda8af4b575680"; }; nixpkgs = fetchGit { url = https://github.com/NixOS/nixpkgs.git; ref = "release-17.09"; rev = "66b4de79e3841530e6d9c6baf98702aa1f7124e4"; }; in (import (nix + "/release.nix") { inherit nix nixpkgs; }).build.x86_64-linux )' The goal is to enable completely reproducible and traceable evaluation. For example, a NixOS configuration could be fully described by a single Git commit hash. 'nixos-rebuild' would do something like nix build --pure-eval '( (import (fetchGit { url = file:///my-nixos-config; rev = "..."; })).system ') where the Git repository /my-nixos-config would use further fetchGit calls or Git externals to fetch Nixpkgs and whatever other dependencies it has. Either way, the commit hash would uniquely identify the NixOS configuration and allow it to reproduced.
2017-11-07Show when tests are skippedEelco Dolstra
Also, don't depend on tput (ncurses). It's really not needed since ANSI escape sequences have been standardized for 35 years or so.
2017-10-09WhitespaceEelco Dolstra
2017-10-06fixing bashisms in test codeJörg Thalheim
This fixed the build on ubuntu/debian, where dash is the sh.
2017-10-03More elegant test outputDan Peebles
I got sick of trying to find the failures in the sea of debug output, so we now: - Hide test output unless it fails - Sprinkle in some simple color - Pad results for a more tabular look If Nix is getting a more friendly user interface, we might as well get a friendlier developer interface, right? :)
2017-04-21set _GNU_SOURCE on cygwinDavid McFarland
this is needed for pipe2()
2016-11-26Revert "Get rid of unicode quotes (#1140)"Eelco Dolstra
This reverts commit f78126bfd6b6c8477fcdbc09b2f98772dbe9a1e7. There really is no need for such a massive change...
2016-11-25Get rid of unicode quotes (#1140)Guillaume Maudoux
2015-10-06Don't pass "--no-copy-dt-needed-entries" option to linker on FreeBSD.Manuel Jacob
Eventually the nested if statements should be replaced by a more general condition, but this is sufficient to make it work on FreeBSD.
2014-12-14Merge branch 'cygwin-master' of https://github.com/ternaris/nixEelco Dolstra
2014-12-14Merge commit '36c67860363c93eb00cf5b8e2ad34f6f775e6901'Eelco Dolstra
2014-12-09Fix library handling on CygwinMarko Durkovic
1. Shared lib extension is .dll 2. Shared libs are installed to $(prefix)/bin 3. Linker does not support -z flag
2014-12-09Set custom compiler flags on CygwinMarko Durkovic
2014-08-20Merge commit '2aa93858afee22e0c32d8f4366970976374091ac'Eelco Dolstra
2014-04-03Sync with make-rules repoEelco Dolstra
2014-02-07Merge commit 'a210c995cdd9279ed4137ec5d2e4cc928cb36097'Eelco Dolstra
2014-02-04GNU Make 3.81 compatibilityEelco Dolstra
3.81 doesn't understand the ‘define foo =’ syntax, which was added in 3.82. So use ‘define foo’ instead.
2014-02-03Merge commit '8468806552d6730abec6431c42b5b0e897c0222c'Eelco Dolstra
2014-02-01Merge commit '28dc4883356a50f2805a3e3c819a541c44a4ff0a' into makeEelco Dolstra
2014-02-01Add 'mk/' from commit '1eff3ad37fdb9dcf9f8528fdacea0ebf0e79d545'Eelco Dolstra
git-subtree-dir: mk git-subtree-mainline: 6ef32bddc1f10034322966b3a5b85af7b9cdc4d8 git-subtree-split: 1eff3ad37fdb9dcf9f8528fdacea0ebf0e79d545
2014-01-09Remove mk subdirectory in preparation for "git subtree"Eelco Dolstra
2014-01-09Move stuff to top-levelEelco Dolstra
This makes it easier to use with "git subtree".
2013-12-18Add support for building JARs from Java sourcesEelco Dolstra
2013-12-18Add a function for doing recursive wildcard searchesEelco Dolstra
Source: http://blog.jgc.org/2011/07/gnu-make-recursive-wildcard-function.html