summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorMassimiliano Culpo <massimiliano.culpo@gmail.com>2019-04-02 21:52:47 +0200
committerPeter Scheibel <scheibel1@llnl.gov>2019-04-02 12:52:47 -0700
commita1255b61c0de860f3c9941a7b39c19ab2b0d5969 (patch)
treee1c1029ab3ab75fd6f82683e168b0e2ac52bc02c /README.md
parentb08518dadd92311dad6dd85d6d380a20305ac47e (diff)
downloadspack-a1255b61c0de860f3c9941a7b39c19ab2b0d5969.tar.gz
spack-a1255b61c0de860f3c9941a7b39c19ab2b0d5969.tar.bz2
spack-a1255b61c0de860f3c9941a7b39c19ab2b0d5969.tar.xz
spack-a1255b61c0de860f3c9941a7b39c19ab2b0d5969.zip
Added tests on compiler's version detection (#10931)
* Split get_compiler_version into two functions: get_compiler_version_output runs the compiler with the relevant option to print the version; extract_version_from_output determines the version by examining this output. This makes it easier to test the customized version detection for each compiler. Users can customize this by overriding the following: * version_argument: this is the argument that tells the compiler to print its version. It assumes that the compiler will report its version if invoked with a single option (like "--version") * version_regex: the regular expression used to extract the version from the compiler argument. This assumes that a regular expression is sufficient to extract the version, and that the version can be extracted from a single capture group (Spack uses the first capture group) * default_version: allows you to completely override all version detection logic * get_compiler_version_output: if getting the compiler to report its version is more complex than invoking it with a single arg * extract_version_from_output: if it is difficult to define a regex that can be used to extract the version from the output * Added tests for version detection of most compilers * Removed redundant code from xl_r compiler class (by inheriting from xl compiler definition)
Diffstat (limited to 'README.md')
0 files changed, 0 insertions, 0 deletions