Anton Korobeynikov
2011-Oct-28 08:26 UTC
[LLVMdev] [cfe-dev] RFC: Upcoming Build System Changes
Hi Oskar,> If having two build systems is a problem, just standardize on cmake.Does cmake support cross-compilation? Can it cross-compile LLVM ? -- With best regards, Anton Korobeynikov Faculty of Mathematics and Mechanics, Saint Petersburg State University
Arnaud Allard de Grandmaison
2011-Oct-28 08:46 UTC
[LLVMdev] [cfe-dev] RFC: Upcoming Build System Changes
Hi Anton, Cmake definitely support cross-compilation. This is achieved by defining some so-called 'toolchain' files. Doing this is not well documented in the web documentation, as far as I know, but the cmake paper book describe it extensively. Several reasonnable size projects here have used it successfully. Regards, -- Arnaud de Grandmaison -----Original Message----- From: cfe-dev-bounces at cs.uiuc.edu [mailto:cfe-dev-bounces at cs.uiuc.edu] On Behalf Of Anton Korobeynikov Sent: Friday, October 28, 2011 10:27 AM To: Óscar Fuentes Cc: cfe-dev at cs.uiuc.edu; llvmdev at cs.uiuc.edu Subject: Re: [cfe-dev] RFC: Upcoming Build System Changes Hi Oskar,> If having two build systems is a problem, just standardize on cmake.Does cmake support cross-compilation? Can it cross-compile LLVM ? -- With best regards, Anton Korobeynikov Faculty of Mathematics and Mechanics, Saint Petersburg State University _______________________________________________ cfe-dev mailing list cfe-dev at cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev CONFIDENTIAL NOTICE: The contents of this message, including any attachments, are confidential and are intended solely for the use of the person or entity to whom the message was addressed. If you are not the intended recipient of this message, please be advised that any dissemination, distribution, or use of the contents of this message is strictly prohibited. If you received this message in error, please notify the sender. Please also permanently delete all copies of the original message and any attached documentation. Thank you.
Óscar Fuentes
2011-Oct-28 16:21 UTC
[LLVMdev] [cfe-dev] RFC: Upcoming Build System Changes
Hello Anton. Anton Korobeynikov <anton at korobeynikov.info> writes:>> If having two build systems is a problem, just standardize on cmake. > Does cmake support cross-compilation? Can it cross-compile LLVM ?Yes: http://www.llvm.org/docs/CMake.html#cross The main difference is that you use a configuration file instead of passing arguments on the command line. Please note that the configuration file is for a toolset, not for a project (i.e. you don't need to create one every time you want to cross-compile a new project from Debian to Windows with MinGW.)
Anton Korobeynikov
2011-Oct-28 17:09 UTC
[LLVMdev] [cfe-dev] RFC: Upcoming Build System Changes
> The main difference is that you use a configuration file instead of > passing arguments on the command line. Please note that the > configuration file is for a toolset, not for a project (i.e. you don't > need to create one every time you want to cross-compile a new project > from Debian to Windows with MinGW.)Well, ok. How hard it will be to create something necessary for llvm? E.g. when part of tools / libs should be built for build platform and everything else - for host? -- With best regards, Anton Korobeynikov Faculty of Mathematics and Mechanics, Saint Petersburg State University
Possibly Parallel Threads
- [LLVMdev] [cfe-dev] RFC: Upcoming Build System Changes
- [LLVMdev] [cfe-dev] RFC: Upcoming Build System Changes
- [LLVMdev] [cfe-dev] RFC: Upcoming Build System Changes
- [LLVMdev] [cfe-dev] RFC: Upcoming Build System Changes
- [LLVMdev] [cfe-dev] RFC: Upcoming Build System Changes