I have a cross platform (windows & linux) project managed in CodeBlocks. Everything is OK until I add a .asm into the project. On Windows, the custom building command should be something like "yasm -Xgnu -fwin32 -o $object $file". However, on linux I'd like to change it into "yasm -Xgnu -felf32 -o $object $file" for 32-bit target, and "yasm -Xgnu -felf64 -o $object $file" for 64-bit target.
In Advance page of custom build dialog, the command is bind on compiler, not platform. And in my case, the compiler is always GNU GCC Compiler, no matter what platform it is. How can I handle this?