]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/tools/build/src/tools/ifort.jam
update sources to ceph Nautilus 14.2.1
[ceph.git] / ceph / src / boost / tools / build / src / tools / ifort.jam
CommitLineData
7c673cae
FG
1# Copyright (C) 2004 Toon Knapen
2#
3# Use, modification and distribution is subject to the Boost Software
4# License Version 1.0. (See accompanying file LICENSE_1_0.txt or
5# http://www.boost.org/LICENSE_1_0.txt)
6
7import toolset : flags ;
8import feature ;
9import fortran ;
10
11rule init ( version ? : command * : options * )
12{
13}
14
15# Declare flags and action for compilation
16flags ifort OPTIONS <fflags> ;
17
18flags ifort OPTIONS <optimization>off : /Od ;
19flags ifort OPTIONS <optimization>speed : /O3 ;
20flags ifort OPTIONS <optimization>space : /O1 ;
21
11fdf7f2 22flags ifort OPTIONS <debug-symbols>on : "/debug:full" ;
7c673cae
FG
23flags ifort OPTIONS <profiling>on : /Qprof_gen ;
24
25flags ifort.compile FFLAGS <runtime-debugging>off/<runtime-link>shared : /MD ;
26flags ifort.compile FFLAGS <runtime-debugging>on/<runtime-link>shared : /MDd ;
27flags ifort.compile FFLAGS <runtime-debugging>off/<runtime-link>static/<threading>single : /ML ;
28flags ifort.compile FFLAGS <runtime-debugging>on/<runtime-link>static/<threading>single : /MLd ;
29flags ifort.compile FFLAGS <runtime-debugging>off/<runtime-link>static/<threading>multi : /MT ;
30flags ifort.compile FFLAGS <runtime-debugging>on/<runtime-link>static/<threading>multi : /MTd ;
31
32flags ifort DEFINES <define> ;
33flags ifort INCLUDES <include> ;
34
35rule compile.fortran
36{
37}
38
39actions compile.fortran
40{
41 ifort $(FFLAGS) $(OPTIONS) /names:lowercase /D$(DEFINES) /I"$(INCLUDES)" /c /object:"$(<)" "$(>)"
42}
43
44generators.register-fortran-compiler ifort.compile.fortran : FORTRAN : OBJ ;