Kode / khamake

Kha's build tool.
http://kha.tech
15 stars 45 forks source link

Too many assets on native #133

Open sh-dave opened 6 years ago

sh-dave commented 6 years ago

C:\...somethingsomething...\build\windows-build\Sources\src\kha\_Assets\SoundList.cpp : fatal error C1128: number of sections exceeded object file format limit: compile with /bigobj

Khamake (Koremake probably as well) needs an option to pass additional compiler/linker flags. Currently there only is 'addCDefine' for preprocessor arguments.

RobDangerous commented 6 years ago

/bigobj is now the default (only downside I see mentioned in the internetz is a lack of compatibility with VS < 2005). Should add an option for compiler arguments nonetheless...

sh-dave commented 6 years ago

I don't actually run into this issue anymore, as i use the { notInList } khamake option for 99% of our assets now. If this change doesn't affect anything else negatively keep it in, otherwise you could also revert it.

RobDangerous commented 6 years ago

But yesterday I ran into that issue when compiling Krom. Also taught Visual Studio to default to 64 bit compilers because of that. Visual Studio by default doesn't like big projects.