Skip to main content



      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 15:18 Go to next message
Eclipse UserFriend
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 16:58 Go to previous messageGo to next message
Eclipse UserFriend
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 15:17 Go to previous message
Eclipse UserFriend
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: Thu May 15 16:47:40 EDT 2025

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

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

Back to the top