Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Headless 32-bit build on 64-bit machine
Headless 32-bit build on 64-bit machine [message #1142635] Thu, 17 October 2013 19:18 Go to next message
Dave Close is currently offline Dave CloseFriend
Messages: 2
Registered: October 2013
Junior Member
I am presently running a headless compile from Jenkins on 64-bit Linux x86_64 and it works fine. Here's the basic command.

/usr/bin/eclipse \
--launcher.suppressErrors \
-nosplash \
-application org.eclipse.cdt.managedbuilder.core.headlessbuild \
-import ./ \
-cleanBuild project/Debug \
-data ../tmp-project

Of course, this builds a 64-bit binary (and I want that). But I also want to build a 32-bit binary and can't figure out how. I understand that the IDE can do so by setting the compiler and linker flags to -m32. However, I can't find a way to pass that information on the command line.

Note that I don't want to create two separate projects and I don't want to change the IDE settings of the project. I want to end up with both 32- and 64-bit binaries.
Re: Headless 32-bit build on 64-bit machine [message #1142759 is a reply to message #1142635] Thu, 17 October 2013 20:58 Go to previous messageGo to next message
David Wegener is currently offline David WegenerFriend
Messages: 1445
Registered: July 2009
Senior Member
You might be able to do this by creating an additional target (Debug32?) within the project. You can control compiler and linker flags on a target by target basis. This works when building in the IDE. I don't know if it would work for headless builds.
Re: Headless 32-bit build on 64-bit machine [message #1144265 is a reply to message #1142759] Fri, 18 October 2013 19:17 Go to previous message
Dave Close is currently offline Dave CloseFriend
Messages: 2
Registered: October 2013
Junior Member
Thanks, David. That appears to solve the problem.
Previous Topic:Create plugin to install custom gcc and preprocessor into Eclipse environment
Next Topic:c graphic library
Goto Forum:
  


Current Time: Wed Apr 24 22:30:30 GMT 2024

Powered by FUDForum. Page generated in 0.02710 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top