2

I did try to put "-fstack-protector-all" flag to other C++ Flags under project build settings tab in xCode, but it seems that, this flag is unused or have no impact on the builded application.

To verify build I'm using otool -Iv AppBinary | grep stack.

Tamara Koliada
  • 1,200
  • 2
  • 14
  • 31
  • Possible duplicate of [Swift and Stack smashing protection](https://stackoverflow.com/questions/38564924/swift-and-stack-smashing-protection) – Daniel Sumara Feb 18 '19 at 07:39

1 Answers1

0

-fstack-protector-all is a flag on the GCC compiler. (Documentation here)

As you state "swift application" in the topic, the GCC compiler is not involved here. Instead it's the swiftc compiler with different options and settings. Alas, I don't know of comparable options for the latter one.

David Buck
  • 3,752
  • 35
  • 31
  • 35
Chris
  • 21
  • 1