Skip to content
Snippets Groups Projects

Makefile: Improve gcc detection

Merged Golden requested to merge Golden/SRB2:better-gcc-check into master

The Makefile's gcc autodetection wasn't working for me, so I fixed it.
Turns out gcc is extremely abrasive towards you getting its real name.
Most of the time it gives you argv[0] (typically cc).

Meanwhile clang will happily tell me that its clang wherever possible.

Please tell me if this works on your machine.
It'll be just wonderful if gcc's behavior differs between platforms.

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading