Message ID | 20250110181508.350378-3-adhemerval.zanella@linaro.org |
---|---|
State | Accepted |
Commit | f28702b2eead1c65292c4fc84ecade2be201de0e |
Headers | show |
Series | More fixes for building tests with clang | expand |
> On 10 Jan 2025, at 18:15, Adhemerval Zanella <adhemerval.zanella@linaro.org> wrote: > > clang does not support -profile: > > clang: error: unknown argument '-profile'; did you mean '-fprofile'? > --- > gmon/Makefile | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > ok > diff --git a/gmon/Makefile b/gmon/Makefile > index 6e39366a0c..26051ed2fb 100644 > --- a/gmon/Makefile > +++ b/gmon/Makefile > @@ -42,7 +42,8 @@ tests = \ > tst-mcount-overflow \ > tst-sprofil \ > # tests > -ifeq ($(build-profile),yes) > +# clang does not support -profile to instruct linker to use lc_p > +ifeq ($(build-profile)$(have-test-clang),yesno) > tests += tst-profile-static > tests-static += tst-profile-static > > -- > 2.43.0 >
diff --git a/gmon/Makefile b/gmon/Makefile index 6e39366a0c..26051ed2fb 100644 --- a/gmon/Makefile +++ b/gmon/Makefile @@ -42,7 +42,8 @@ tests = \ tst-mcount-overflow \ tst-sprofil \ # tests -ifeq ($(build-profile),yes) +# clang does not support -profile to instruct linker to use lc_p +ifeq ($(build-profile)$(have-test-clang),yesno) tests += tst-profile-static tests-static += tst-profile-static