user1286390
user1286390

Reputation: 101

How do I compile in Xcode using gcc with -ansi -pedantic?

I need to compile a code written in C using gcc (in Xcode) with flag options -ansi -pedantic. I know how to change the compiler to gcc, however I don't know how to change the flags.

Thanks in advance.

Upvotes: 1

Views: 807

Answers (1)

Swift Dev Journal
Swift Dev Journal

Reputation: 20088

Use the Other C Flags build setting to add compiler flags that aren't available in Xcode's build settings editor.

Upvotes: 1

Related Questions