diff options
author | AMD Toolchain Support <73240730+amd-toolchain-support@users.noreply.github.com> | 2020-10-29 20:43:30 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-29 10:13:30 -0500 |
commit | 09b63ae3d101d2889a7bbf8e393068abdc93312b (patch) | |
tree | 3bab09f9167b59c6d85e589e7359a475ad6d62f3 | |
parent | 0bed9a1990893178c45bd0e89133187ff0ce52bd (diff) | |
download | spack-09b63ae3d101d2889a7bbf8e393068abdc93312b.tar.gz spack-09b63ae3d101d2889a7bbf8e393068abdc93312b.tar.bz2 spack-09b63ae3d101d2889a7bbf8e393068abdc93312b.tar.xz spack-09b63ae3d101d2889a7bbf8e393068abdc93312b.zip |
Adding AOCC support for M4 (#19572)
* Adding AOCC support for M4
* combining 4 if-statements into a single if-statement with or conditions
* keeping parentheses around the or expressions
* fixing flake8 test failures
Co-authored-by: mohan babu <mohbabul@amd.com>
-rw-r--r-- | var/spack/repos/builtin/packages/m4/package.py | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/var/spack/repos/builtin/packages/m4/package.py b/var/spack/repos/builtin/packages/m4/package.py index 992329682a..6695cdf862 100644 --- a/var/spack/repos/builtin/packages/m4/package.py +++ b/var/spack/repos/builtin/packages/m4/package.py @@ -52,13 +52,10 @@ class M4(AutotoolsPackage, GNUMirrorPackage): if spec.satisfies('%cce@9:'): args.append('LDFLAGS=-rtlib=compiler-rt') - if spec.satisfies('%clang') and not spec.satisfies('platform=darwin'): - args.append('LDFLAGS=-rtlib=compiler-rt') - - if spec.satisfies('%arm') and not spec.satisfies('platform=darwin'): - args.append('LDFLAGS=-rtlib=compiler-rt') - - if spec.satisfies('%fj') and not spec.satisfies('platform=darwin'): + if (spec.satisfies('%clang') or + spec.satisfies('%aocc') or + spec.satisfies('%arm') or + spec.satisfies('%fj')) and not spec.satisfies('platform=darwin'): args.append('LDFLAGS=-rtlib=compiler-rt') if spec.satisfies('%intel@:18.999'): |