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

                 Summary: llvm internal options are ignored. 
                   Group: Savannah Administration
               Submitter: ukalappa
               Submitted: Wed 20 Mar 2024 09:08:53 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: Wed 20 Mar 2024 09:08:53 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 tool sorts the options before giving
to driver and options ends up option like "-O3 -mllvm -mllvm 
-enable-loop-distribute -inline-threshold=1000  "

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/?111034>

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


Reply via email to