How do I tell AMBuild to compile with Clang instead of GCC?
OS: Ubuntu 18.04
Sourcemod version: 1.10.6502 Metamod version: 1.11.1144 AMBuild version: 2.0 I am trying to build this Late Downloads extension for TF2 and L4D2. While someone has kindly compiled the binaries for me, I would still like to be able to compile it myself so I can edit it later. When I run configure.py from the latedl/build folder, the script returns this information: PHP Code:
Spoiler
Zynda suggested that Clang would work better for compiling Sourcemod extensions and supports this extension out of the gate. From what I've been able to gather, if my system has Clang installed (it does, version 6.0.0-1ubuntu2), AMBuild should be trying to use that first. However, I don't see that. How do I tell AMBuild to compile the extension with Clang? Is there something I need to edit in the build script, or an environment variable I need to change? Alternatively, what should I try changing in my environment to get GCC to compile the project properly? |
Re: How do I tell AMBuild to compile with Clang instead of GCC?
AMBuild uses the standard CC and CXX environment variables to select a compiler.
Code:
CC=clang CXX=clang++ python ../configure.py --sdks=l4d2,tf2 |
Re: How do I tell AMBuild to compile with Clang instead of GCC?
Quote:
|
All times are GMT -4. The time now is 17:58. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.