|
|
Home » Developing U++ » U++ Developers corner » [Compilation] Include .asm files in build
[Compilation] Include .asm files in build [message #42541] |
Sun, 23 March 2014 12:09  |
crydev
Messages: 151 Registered: October 2012 Location: Netherlands
|
Experienced Member |
|
|
Hello,
I've been coding on an application that needed and will need .asm files included in the build in the future. I found a thread of how to create custom build steps to compile .asm files. I followed it but I could not get it to work.
Is it possible to get .asm files compiled automatically with a build in the future? It'd be really useful. 
Regards,
crydev
[Updated on: Sun, 23 March 2014 12:10] Report message to a moderator
|
|
|
Re: [Compilation] Include .asm files in build [message #42542 is a reply to message #42541] |
Sun, 23 March 2014 15:42   |
|
crydev wrote on Sun, 23 March 2014 12:09 | Hello,
I've been coding on an application that needed and will need .asm files included in the build in the future. I found a thread of how to create custom build steps to compile .asm files. I followed it but I could not get it to work.
Is it possible to get .asm files compiled automatically with a build in the future? It'd be really useful. 
Regards,
crydev
|
Hi crydev,
In my experience, the custom build steps are quite powerful tool. I haven't What have you tried? And why it didn't work?
It should be certainly easier to figure that out, than adding .asm support to all the supported builders Not even talking about fact that there is several asm dialects and it would be probably quite difficult to guess which compiler to use for what file...
Best regards,
Honza
|
|
|
|
|
|
Re: [Compilation] Include .asm files in build [message #42615 is a reply to message #42612] |
Wed, 26 March 2014 20:16   |
|
Hi crydev,
Now we're getting somewhere
Based on the output, it seems that the flag for your compiler is VC10X64 rather than MSC10X64. Don't ask me why, I'm haven't seen theide on windows for years So, you can try with VC10X64.
If that doesn't help, you can try specifying bit more elaborate tricks with flags. They support some basic expressions, so you can try things like !WIN32 or even better !WIN32 & !POSIX. If that doesn't work either, I'll probably have to get a windows machine to try myself, because this behavior would seem rather suspicious 
Honza
|
|
|
|
Re: [Compilation] Include .asm files in build [message #42660 is a reply to message #42654] |
Thu, 27 March 2014 10:40  |
|
crydev wrote on Thu, 27 March 2014 08:22 | Hi Honza,
When I use the compiler flag (VC10(X64)) as flag for the When field it doesn't execute the build step at all. It seems like WIN32 is defined in 32-bit compilation mode as well as in 64-bit mode. Is there a flag that is not defined in 32 that is in 64?
Regards,
crydev
|
Ok, I was little afraid of this
But there might be quite simple workaround... You can add flags to build method. Go to Setup > Build Methods and select your 64bit method. Add something like 64BIT to "fixed flags" fields (better into all three, the Common fixed flags one seems broken right now :-/ ). Then do the similar thing for the 32bit build method. After that it should be possible to use 32BIT/64BIT flags in custom build steps.
I hope this will finally work 
Honza
PS: There were some changes in the build methods dialog not very long ago. You might want to update your theide to some recent nightly version...
|
|
|
Goto Forum:
Current Time: Fri May 09 11:14:48 CEST 2025
Total time taken to generate the page: 0.01706 seconds
|
|
|