# Compile for Xe2 , xe5 and xe 7

**URL:** https://www.finalbuilder.com/forums/t/compile-for-xe2-xe5-and-xe-7/2316
**Category:** Discussion
**Created:** [October 22, 2014, 10:15am UTC](https://www.finalbuilder.com/forums/t/compile-for-xe2-xe5-and-xe-7/2316 "2014-10-22T10:15:36Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![bernhard.lippmann](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/b/3be4f8/32.png) [@bernhard.lippmann](https://www.finalbuilder.com/forums/u/bernhard.lippmann)
#### Post date: [October 22, 2014, 10:15am UTC](https://www.finalbuilder.com/forums/t/compile-for-xe2-xe5-and-xe-7/2316/1 "2014-10-22T10:15:36Z")

</div>

I need to compile all our projects&nbsp; with different compilers in x32 and x64 mode.&nbsp; . I would like to loop the compilation&nbsp;while using&nbsp;different xe Versions and also set the Output path of the exe files&nbsp; \out\_xe …&nbsp;&nbsp; to get&nbsp; all the results in different Folders. I#m not very trained with the functions of final builder

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [October 23, 2014, 11:20am UTC](https://www.finalbuilder.com/forums/t/compile-for-xe2-xe5-and-xe-7/2316/2 "2014-10-23T11:20:25Z")

</div>

Put the compiler action in an actionlist, and call it with different parameter values. To set the compiler version using a variable you will need to use a script in the BeforeAction script event for the delphi action, e.g   
  
 Action.CompilerVersion = CompilerVersion;   
  
 Recommended reading :   
  
 [http://help.finalbuilder.com/actionlists.htm](http://help.finalbuilder.com/actionlists.htm)   
 [http://help.finalbuilder.com/variablesoverview.htm](http://help.finalbuilder.com/variablesoverview.htm)
