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>
This commit is contained in:
AMD Toolchain Support 2020-10-29 20:43:30 +05:30 committed by GitHub
parent 0bed9a1990
commit 09b63ae3d1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -52,13 +52,10 @@ def configure_args(self):
if spec.satisfies('%cce@9:'): if spec.satisfies('%cce@9:'):
args.append('LDFLAGS=-rtlib=compiler-rt') args.append('LDFLAGS=-rtlib=compiler-rt')
if spec.satisfies('%clang') and not spec.satisfies('platform=darwin'): if (spec.satisfies('%clang') or
args.append('LDFLAGS=-rtlib=compiler-rt') spec.satisfies('%aocc') or
spec.satisfies('%arm') or
if spec.satisfies('%arm') and not spec.satisfies('platform=darwin'): spec.satisfies('%fj')) and not spec.satisfies('platform=darwin'):
args.append('LDFLAGS=-rtlib=compiler-rt')
if spec.satisfies('%fj') and not spec.satisfies('platform=darwin'):
args.append('LDFLAGS=-rtlib=compiler-rt') args.append('LDFLAGS=-rtlib=compiler-rt')
if spec.satisfies('%intel@:18.999'): if spec.satisfies('%intel@:18.999'):