Nicolas Schneider
ded0defc3f
auto generate msvc pch source file if none is provided by the user
6 years ago
Daniel Mensinger
fcd608c131
azure: Fix python3 in vs2017 tasks
6 years ago
Jussi Pakkanen
a322dc534b
Revert "Improve declare_dependency() example in Generating-sources.md [skip ci]"
...
This reverts commit 67a01c8d7f
.
6 years ago
Michael Hirsch, Ph.D
71cffa67fa
add NetCDF
6 years ago
John M. Lindemon
939c00a972
Fix nvcc error with threads dependency (4999)
6 years ago
John Ericson
2d6d242aec
Feed compiler Properties to get its options defaulted
...
Before, the logic initialization compiler options from environment
variables vs config files was strewn about. Now, it is consolidated. We
leverage the new `envconfig.py` module to expose the configuration data
to `compilers.py` without creating an import cycle.
6 years ago
John Ericson
c2db7a9cee
Sync up initialization logic with Properties and BinaryTable
...
1. They (and the others) all use PerMachineDefaultable. It's not the
best class, but consistency come first. (It and all of them can be
improved accross the board later.)
2. They use `None` as the default argument so as not to mutate what's
effectively a global variables. (Thanks @dcbaker!)
3. They have a `fallback` field to centralize authority on when
environment variables should be consulted.
6 years ago
John Ericson
2622e9ec32
Move some configuration classes out of environment.py
...
First of all, I'd like compilers and other modules that environment.py
currently imports to be able to take these without creating
hard-to-follow module cycles.
Second of all, environment.py's exact purpose seems a bit obscured.
Splitting the data types (and basic pure functions) from the more
complex logic that infers that data seems like a good way to separate
concerns.
6 years ago
Daniel Mensinger
94fe01deec
rewriter: Sort dict iterations to fix unit tests
6 years ago
Olexa Bilaniuk
ecdef0d005
Add table entry for CUDA Toolkit 10.1.
6 years ago
Michael Hirsch, Ph.D
39e6dc5885
correct Fortran self-dep logic
...
corrected, generalized self-referential Fortran fix
further refine logic
6 years ago
Jussi Pakkanen
97555cf6d9
Merge pull request #4939 from mensinda/rwDefOpts
...
rewriter: Set and delete project default options
6 years ago
Martin Ejdestig
67a01c8d7f
Improve declare_dependency() example in Generating-sources.md [skip ci]
...
By using private_dir_include() instead of enumerating headers in sources
of declare_dependency. Much more convenient, especially when there are
many headers.
Found out about this by reading #4638 . It is not documented anywhere as
far as I can tell.
6 years ago
Michael Hirsch, Ph.D
32a344b949
Fortran: handle self-referential files
6 years ago
Jussi Pakkanen
76e385391f
Merge pull request #4914 from mensinda/cmakePreCheck
...
cmake: Check if modules exist before running CMake
6 years ago
Daniel Mensinger
4bf1a352cc
mconf: Fixed crash for variables in targets ( closes #4960 )
6 years ago
John Ericson
8c6d6393f2
Remove redundant definition of `cflags_mapping`
...
It seems this was erroneously coppied in `54b6afa67`.
6 years ago
John Ericson
9cf0f31ec0
unit tests: Use unittest.skipUnless to simplify main()
...
This makes the testsuite work better with other test runners, like
pytest. This is important because better test runners are very useful to
development (e.g. avoiding running succeeding tests again and again),
even if we want to still support 0 dependency testing of Meson though
keeping the default test runnner working.
6 years ago
Daniel Mensinger
16b6b2d411
Use c++14 instead of c++17 in the tests
6 years ago
Daniel Mensinger
9e247cb52e
rewriter: Set and delete default options
6 years ago
Daniel Mensinger
74bb79e26e
rewriter: Remove matching regex from list
6 years ago
Daniel Mensinger
e37d32aa9d
rewriter: Basic default_options support
6 years ago
Daniel Mensinger
719730ff14
Minor fixes for code review
6 years ago
Nirbheek Chauhan
b7fa161cb9
Use tuple comprehensions
...
Co-Authored-By: mensinda <daniel@mensinger-ka.de>
6 years ago
Daniel Mensinger
bc25a12709
Minor code fixes
6 years ago
Daniel Mensinger
1dfa3783f5
Use @lru_cache and added return annotation
6 years ago
Daniel Mensinger
b69e45ebac
Fixed flake8
6 years ago
Daniel Mensinger
b2dd5fbe08
Fixed minor logic error regarding case conversion
6 years ago
Daniel Mensinger
33f5f06f38
Added Mac support
6 years ago
Daniel Mensinger
03d9bc3b0e
Ignore exceptions
6 years ago
Daniel Mensinger
cdc338b743
Preliminary CMake module search
6 years ago
Daniel Mensinger
6efc94b5dd
Support different CMake files
6 years ago
Jussi Pakkanen
92f95b3326
Merge pull request #4982 from mesonbuild/dmddebug
...
Hack to get failure output from CI.
6 years ago
Jussi Pakkanen
9acbd62789
Launch Meson via python3 so the binary name is correct.
6 years ago
Jussi Pakkanen
5d751a2506
Pick target exactly rather than relying on dict order.
6 years ago
Jussi Pakkanen
7564a63353
Copy python3.5 to python3 so tests pass on Cygwin.
6 years ago
Jussi Pakkanen
067ff7eeae
Fall back to current interpreter when python3 not found.
6 years ago
Jussi Pakkanen
a81207881b
Disable D tests if dmd install is broken.
6 years ago
emersion
06e939bcbb
docs: compiled() only works with compiler.run() results [skip ci]
6 years ago
Nicolas Schneider
72370faef0
vs: add support for `build_always_stale` for custom targets
6 years ago
Jussi Pakkanen
41fb5c2960
Merge pull request #4972 from obilaniu/cudafixes
...
CUDA fixes
6 years ago
David Vanderson
5b53335724
xcode backend: Add target dependency link args
6 years ago
Nirbheek Chauhan
9291f37b65
ci: Debug why dmd --version is returning 1
6 years ago
Olexa Bilaniuk
104397a429
[skip ci] Update the CUDA module documentation.
6 years ago
Olexa Bilaniuk
6d15594d44
Correct Volta+Tegra -> Xavier.
6 years ago
Olexa Bilaniuk
e54fd996bb
Allow 'Auto'-mode flags to use the compiler's detected GPU
...
architectures.
6 years ago
Olexa Bilaniuk
8838cfae73
Solve NVCC -Werror problem.
...
Partially addresses #4961 .
6 years ago
Olexa Bilaniuk
e632a81627
Rework CUDA sanity check.
...
PArtially addresses #4961 .
Also make the sanity check do double duty as a GPU architecture
detection test.
6 years ago
Nirbheek Chauhan
f4b344f5b0
azure-pipelines: Fix cygwin python3 installation
...
The package has been moved from python3-pip to python3N-pip where N is
5, 6, 7. We use Python 3.5, so let's use that.
6 years ago
Nicolas Schneider
76db753286
vs: use CustomBuild instead of CustomBuildStep for custom targets
...
This allows to view the build step in VS and reuses the same concept that
we use for run targets instead of maintaining two different behaviors.
6 years ago