AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Coding MM:S Plugins & SM Extensions (https://forums.alliedmods.net/forumdisplay.php?f=75)
-   -   Manually setting the compiler for AMBuild (https://forums.alliedmods.net/showthread.php?t=344168)

HBann 10-06-2023 15:18

Manually setting the compiler for AMBuild
 
Hello, I am on Windows 11 and I have the MSVC compiler installed from VS 2022, but I want to compile with clang because, in the end I will compile on Ubuntu with clang and I don't need any build fails surprises or things like that. I have installed last version of LLVM (17) and I want to compile with clang but Detectcxx(target = "clang") doesn't work, what is the exact parameter?

How can I achieve this? Choosing the compiler and not automatically detecting and choosing the first compiler.

Thank you in advance.

BHaType 10-06-2023 21:24

Re: Manually setting the compiler for AMBuild
 
Quote:

Originally Posted by HBann (Post 2811217)
...

You can choose compiler at configuration step.

PHP Code:

CC=clang CXX=clang++ python ../configure.py 



All times are GMT -4. The time now is 09:34.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.