Clang warns me,
clang: warning: argument unused during compilation: '-Os'
During compile with make. Why it doesn’t accept the optimization flag?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
-Osisn’t a valid optimization option for (most)clang– it’s not completely flag-compatible with GCC.The clang man page is authoritative on what options your particular version accepts (specifically, optimizing by size is not yet a primary concern for LLVM). Apple has pushed back patches for
-Osand-Oz, but most packages don’t include these updates.