AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Coding MM:S Plugins & SM Extensions (https://forums.alliedmods.net/forumdisplay.php?f=75)
-   -   Clang 3.8 enable link time optimization (https://forums.alliedmods.net/showthread.php?t=323628)

kadet.89 04-24-2020 06:09

Clang 3.8 enable link time optimization
 
I'm trying to build my CEntity-based extensions with '-flto' option following this instruction:
http://llvm.org/docs/GoldPlugin.html#lto-how-to-build

basecally I replaced /usr/bin/ld with /usr/bin/ld.gold and added '-flto' to cxx.cflags in AMBuildScript

And I get these errors for some object files in my extensions:
Code:

/usr/bin/ld: error: extension.o:1:3: invalid character
/usr/bin/ld: error: extension.o:1:3: syntax error, unexpected $end
/usr/bin/ld: error: extension.o: not an object or archive



All times are GMT -4. The time now is 19:41.

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