URL:
  <https://savannah.nongnu.org/support/?111036>

                 Summary: llvm internal options are ignored  by libtool.
                   Group: Savannah Administration
               Submitter: ukalappa
               Submitted: Thu 21 Mar 2024 07:37:15 AM UTC
                Category: None
                Priority: 5 - Normal
                Severity: 3 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
        Operating System: None
             Open/Closed: Open
         Discussion Lock: Any


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Thu 21 Mar 2024 07:37:15 AM UTC By: Umesh <ukalappa>
Hi ,

we tried to compile the audio decoder lib with clang like
https://github.com/markjeee/libmad with overriding the CFLAGS with llvm
internal option like

export CFLAGS="-O3 clang -mllvm -inline-threshold=1000  -mllvm
-enable-loop-distribute   test.c " ,
here libtool sorts the options before giving to driver and options ends up
option like "-O3 -mllvm -mllvm  -enable-loop-distribute -inline-threshold=1000
 "

libtool commandline looks like ./libtool --mode=compile clang -O3 -mllvm
-mllvm  -enable-loop-distribute -inline-threshold=1000  -MT stream.lo -MD -MP
-MF ".deps/stream.Tpo" -c -o stream.lo stream.c; \
then mv -f ".deps/stream.Tpo" ".deps/stream.Plo"; else rm -f
".deps/stream.Tpo"; exit 1; fi

hence the clang driver errors out like

clang: error: unknown argument '-inline-recursion=2'; did you mean
'-finline-recursion=2'?

which is expected ,since the clang driver expect all internal options prepend
with "-mllvm".

Please let us know ,if required more info on this ,

thank you







    _______________________________________________________

Reply to this item at:

  <https://savannah.nongnu.org/support/?111036>

_______________________________________________
Message sent via Savannah
https://savannah.nongnu.org/


Reply via email to