# Projucer Bug: Custom compiler flags not working in JUCE 7.0.4

**URL:** <https://forum.juce.com/t/projucer-bug-custom-compiler-flags-not-working-in-juce-7-0-4/54391>\
**Category:** The Projucer\
**Created:** [January 5, 2023, 5:20pm UTC](https://forum.juce.com/t/projucer-bug-custom-compiler-flags-not-working-in-juce-7-0-4/54391 "2023-01-05T17:20:07Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![jimc](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/jimc/32/16067_2.png) [@jimc](https://forum.juce.com/u/jimc)\
**Post date:** [January 5, 2023, 5:20pm UTC](https://forum.juce.com/t/projucer-bug-custom-compiler-flags-not-working-in-juce-7-0-4/54391/1 "2023-01-05T17:20:08Z")

</div>

The flags we have set for our files here are not being passed to Xcode correctly. I saw there was a previous commit to fix this issue ([Projucer: Fix an issue with per-file compiler flags not being respected · juce-framework/JUCE@b0bd31b · GitHub](https://github.com/juce-framework/JUCE/commit/b0bd31b3c26d097504784178caf4bc5261e70cb3)), but I’d say it’s still broken.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/juce/original/2X/3/3e2c5fd8b7a8a899b9a7a69cda4853cf323fffa0.jpeg)

---

<div class="post-metadata">

**Author:** ![jimc](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/jimc/32/16067_2.png) [@jimc](https://forum.juce.com/u/jimc)\
**Post date:** [January 9, 2023, 11:18am UTC](https://forum.juce.com/t/projucer-bug-custom-compiler-flags-not-working-in-juce-7-0-4/54391/2 "2023-01-09T11:18:12Z")

</div>

Bump - this is stopping our builds 🙂

---

<div class="post-metadata">

**Author:** ![jimc](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/jimc/32/16067_2.png) [@jimc](https://forum.juce.com/u/jimc)\
**Post date:** [January 14, 2023, 4:11pm UTC](https://forum.juce.com/t/projucer-bug-custom-compiler-flags-not-working-in-juce-7-0-4/54391/3 "2023-01-14T16:11:52Z")

</div>

Bump.

I’ve attached a simple project illustrating the bug. If custom flags are working this should not compile (and doesn’t with an earlier version of JUCE), but it does with the latest JUCE 7.

> **[DemoOfCompilerFlags.zip](https://www.dropbox.com/s/62zrzykp3pzc5ib/DemoOfCompilerFlags.zip?dl=0)**
>
> Shared with Dropbox

---

<div class="post-metadata">

**Author:** ![reuk](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/reuk/32/21494_2.png) [@reuk](https://forum.juce.com/u/reuk)\
**Post date:** [January 14, 2023, 5:44pm UTC](https://forum.juce.com/t/projucer-bug-custom-compiler-flags-not-working-in-juce-7-0-4/54391/4 "2023-01-14T17:44:38Z")

</div>

There’s a fix on the way. I expect it’ll be out some point next week.

---

<div class="post-metadata">

**Author:** ![jimc](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/jimc/32/16067_2.png) [@jimc](https://forum.juce.com/u/jimc)\
**Post date:** [January 15, 2023, 12:24pm UTC](https://forum.juce.com/t/projucer-bug-custom-compiler-flags-not-working-in-juce-7-0-4/54391/5 "2023-01-15T12:24:18Z")

</div>

Our builds will work again 😉

---

<div class="post-metadata">

**Author:** ![reuk](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/reuk/32/21494_2.png) [@reuk](https://forum.juce.com/u/reuk)\
**Post date:** [January 16, 2023, 2:16pm UTC](https://forum.juce.com/t/projucer-bug-custom-compiler-flags-not-working-in-juce-7-0-4/54391/6 "2023-01-16T14:16:21Z")

</div>

Thanks for reporting, this should be fixed on develop:

> <https://github.com/juce-framework/JUCE/commit/709c0f7a161f3a54f250f1f1e24ae8d0e1b3898b>

---

<div class="post-metadata">

**Author:** ![jimc](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/jimc/32/16067_2.png) [@jimc](https://forum.juce.com/u/jimc)\
**Post date:** [January 16, 2023, 2:30pm UTC](https://forum.juce.com/t/projucer-bug-custom-compiler-flags-not-working-in-juce-7-0-4/54391/7 "2023-01-16T14:30:26Z")

</div>

Thanks for fixing. Will update to that after I’ve taken the dogs out for a walk 🙂
