boostcpp.jam 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705
  1. # Boost.Build support specific for the Boost C++ Libraries.
  2. # Copyright Vladimir Prus 2002-2010.
  3. # Copyright Dave Abrahams 2005-2006.
  4. # Copyright Rene Rivera 2005-2007.
  5. # Copyright Douglas Gregor 2005.
  6. #
  7. # Distributed under the Boost Software License, Version 1.0.
  8. # (See accompanying file LICENSE_1_0.txt or copy at
  9. # http://www.boost.org/LICENSE_1_0.txt)
  10. import "class" : new ;
  11. import common ;
  12. import configure ;
  13. import build-system ;
  14. import generate ;
  15. import modules ;
  16. import option ;
  17. import os ;
  18. import package ;
  19. import path ;
  20. import project ;
  21. import regex ;
  22. import set ;
  23. import targets ;
  24. import feature ;
  25. import property ;
  26. ##############################################################################
  27. #
  28. # 0. General setup. Parse options, check them.
  29. #
  30. ##############################################################################
  31. BOOST_ROOT = [ modules.binding $(__name__) ] ;
  32. BOOST_ROOT = $(BOOST_ROOT:D) ;
  33. rule set-version ( version )
  34. {
  35. BOOST_VERSION = $(version) ;
  36. local version-tag = [ MATCH ^([^.]+)[.]([^.]+)[.]([^.]+) : $(BOOST_VERSION)
  37. ] ;
  38. if $(version-tag[3]) = 0
  39. {
  40. version-tag = $(version-tag[1-2]) ;
  41. }
  42. BOOST_VERSION_TAG = $(version-tag:J=_) ;
  43. }
  44. # Option to choose how many variants to build. The default is "minimal".
  45. build-type = [ option.get build-type ] ;
  46. build-type ?= minimal ;
  47. if ! ( $(build-type) in complete minimal )
  48. {
  49. EXIT The value of the --build-type option should be either 'complete' or
  50. 'minimal' ;
  51. }
  52. # What kind of layout are we doing?
  53. layout = [ option.get layout : "" ] ;
  54. # On Windows, we used versioned layout by default in order to be compatible with
  55. # autolink. On other systems, we use system layout which is what every other
  56. # program uses. Note that the Windows check is static, and will not be affected
  57. # by specific build properties used.
  58. if ! $(layout)
  59. {
  60. if [ os.name ] = NT
  61. {
  62. layout = versioned ;
  63. }
  64. else
  65. {
  66. layout = system ;
  67. }
  68. }
  69. layout-$(layout) = true ;
  70. if $(layout) = system && $(build-type) = complete
  71. {
  72. ECHO error: Cannot use --layout=system with --build-type complete. ;
  73. ECHO error: Please use either --layout=versioned or --layout=tagged ;
  74. ECHO error: if you wish to build multiple variants. ;
  75. if [ os.name ] != NT
  76. {
  77. ECHO error: Note that --layout=system is used by default on Unix
  78. starting with Boost 1.40. ;
  79. }
  80. EXIT ;
  81. }
  82. # Possible stage only location.
  83. stage-locate = [ option.get stagedir ] ;
  84. stage-locate ?= stage ;
  85. BOOST_STAGE_LOCATE = $(stage-locate) ;
  86. # Custom build ID.
  87. build-id = [ option.get buildid ] ;
  88. if $(build-id)
  89. {
  90. BUILD_ID = [ regex.replace $(build-id) "[*\\/:.\"\' ]" _ ] ;
  91. }
  92. # Python build id (for Python libraries only).
  93. python-id = [ option.get "python-buildid" ] ;
  94. if $(python-id)
  95. {
  96. PYTHON_ID = [ regex.replace $(python-id) [*\\/:.\"\'] _ ] ;
  97. }
  98. ################################################################################
  99. #
  100. # 1. 'tag' function adding decorations suitable to the properties if versioned
  101. # or tagged layout is requested. Called from Jamroot.
  102. #
  103. ################################################################################
  104. rule tag ( name : type ? : property-set )
  105. {
  106. if $(type) in STATIC_LIB SHARED_LIB IMPORT_LIB
  107. {
  108. local result ;
  109. if $(layout) = versioned
  110. {
  111. result = [ common.format-name
  112. <base> <toolset> <threading> <runtime> -$(BOOST_VERSION_TAG)
  113. -$(BUILD_ID)
  114. : $(name) : $(type) : $(property-set) ] ;
  115. }
  116. else if $(layout) = tagged
  117. {
  118. result = [ common.format-name
  119. <base> <threading> <runtime>
  120. -$(BUILD_ID)
  121. : $(name) : $(type) : $(property-set) ] ;
  122. }
  123. else if $(layout) = system
  124. {
  125. result = [ common.format-name
  126. <base>
  127. -$(BUILD_ID)
  128. : $(name) : $(type) : $(property-set) ] ;
  129. }
  130. else
  131. {
  132. EXIT error: invalid layout '$(layout:E=)' ;
  133. }
  134. # Optionally add version suffix. On NT, library with version suffix will
  135. # not be recognized by linkers. On CYGWIN, we get strage duplicate
  136. # symbol errors when library is generated with version suffix. On OSX,
  137. # version suffix is not needed -- the linker expects the
  138. # libFoo.1.2.3.dylib format. AIX linkers do not accept version suffixes
  139. # either. Pgi compilers can not accept a library with version suffix.
  140. if $(type) = SHARED_LIB &&
  141. ! [ $(property-set).get <target-os> ] in windows cygwin darwin aix &&
  142. ! [ $(property-set).get <toolset> ] in pgi
  143. {
  144. result = $(result).$(BOOST_VERSION) ;
  145. }
  146. return $(result) ;
  147. }
  148. }
  149. # Specialized tag function to use for libraries linking to Python.
  150. # Appends value of --python-buildid if provided.
  151. rule python-tag ( name : type ? : property-set )
  152. {
  153. local result = $(name) ;
  154. if $(type) in STATIC_LIB SHARED_LIB IMPORT_LIB && $(PYTHON_ID)
  155. {
  156. result = $(result)-$(PYTHON_ID) ;
  157. }
  158. # forward to the boost tagging rule
  159. return [ tag $(result) : $(type) : $(property-set) ] ;
  160. }
  161. ################################################################################
  162. #
  163. # 2. Declare targets that build and install all libraries. Specifically:
  164. #
  165. # - 'stage-proper' that puts all libraries in stage/lib
  166. # - 'install-proper' that install libraries and headers to system location
  167. # - 'stage-unversioned' that creates links to libraries without boost version
  168. # in name
  169. # - 'install-unversioned' which creates unversioned linked to installed
  170. # libraries.
  171. #
  172. ################################################################################
  173. # Worker function suitable to the 'generate' metatarget. Creates a link to
  174. # 'source', striping any version number information from the name.
  175. rule make-unversioned-links ( project name ? : property-set : sources * )
  176. {
  177. local filter ;
  178. if [ modules.peek : NT ]
  179. {
  180. filter = (.*[.]lib) ;
  181. }
  182. else
  183. {
  184. filter =
  185. (.*[.]so)[.0-9]*
  186. (.*[.]dylib)
  187. (.*[.]a) ;
  188. }
  189. local result ;
  190. for local s in $(sources)
  191. {
  192. local m = [ MATCH ^(.*)-[0-9_]+$(filter)$ : [ $(s).name ] ] ;
  193. if $(m)
  194. {
  195. local ea = [ $(s).action ] ;
  196. local ep = [ $(ea).properties ] ;
  197. local a = [ new non-scanning-action $(s) : symlink.ln : $(ep) ] ;
  198. result += [ new file-target $(m:J=) exact : [ $(s).type ] :
  199. $(project) : $(a) ] ;
  200. }
  201. }
  202. return $(result) ;
  203. }
  204. rule filtered-target ( name : message + : sources + : requirements * )
  205. {
  206. message $(name)-message : warning: $(message) ;
  207. alias $(name) : $(sources) : $(requirements) ;
  208. alias $(name) : $(name)-message ;
  209. local p = [ project.current ] ;
  210. $(p).mark-target-as-explicit $(name) ;
  211. $(p).mark-target-as-explicit $(name)-message ;
  212. }
  213. rule declare_install_and_stage_proper_targets ( libraries * : headers * )
  214. {
  215. local p = [ project.current ] ;
  216. for local l in $(libraries)
  217. {
  218. if $(l) = locale
  219. {
  220. filtered-target $(l)-for-install :
  221. Skipping Boost.Locale library with threading=single. :
  222. libs/$(l)/build : <threading>multi ;
  223. }
  224. else if $(l) = wave
  225. {
  226. filtered-target $(l)-for-install :
  227. Skipping Boost.Wave library with threading=single. :
  228. libs/$(l)/build : <threading>multi ;
  229. }
  230. else if $(l) = thread
  231. {
  232. filtered-target $(l)-for-install :
  233. Skipping Boost.Thread library with threading=single. :
  234. libs/$(l)/build : <threading>multi ;
  235. }
  236. else
  237. {
  238. alias $(l)-for-install : libs/$(l)/build ;
  239. $(p).mark-target-as-explicit $(l)-for-install ;
  240. }
  241. }
  242. local library-targets = $(libraries)-for-install ;
  243. install-requirements = <install-source-root>$(BOOST_ROOT)/boost ;
  244. if $(layout-versioned)
  245. {
  246. install-requirements +=
  247. <install-header-subdir>boost-$(BOOST_VERSION_TAG)/boost ;
  248. }
  249. else
  250. {
  251. install-requirements += <install-header-subdir>boost ;
  252. }
  253. if [ os.name ] = NT
  254. {
  255. install-requirements += <install-default-prefix>C:/Boost ;
  256. }
  257. else
  258. {
  259. install-requirements += <install-default-prefix>/usr/local ;
  260. }
  261. p = [ project.current ] ;
  262. # Complete install.
  263. package.install install-proper
  264. : $(install-requirements) <install-no-version-symlinks>on
  265. :
  266. : $(libraries)-for-install
  267. : $(headers)
  268. ;
  269. $(p).mark-target-as-explicit install-proper ;
  270. # Install just library.
  271. install stage-proper
  272. : $(libraries)-for-install
  273. : <location>$(stage-locate)/lib
  274. <install-dependencies>on <install-type>LIB
  275. <install-no-version-symlinks>on
  276. ;
  277. $(p).mark-target-as-explicit stage-proper ;
  278. # Commented out as it does not seem to work. Whoever wrote this originally,
  279. # left some typos in the code, but when that got corrected and the code got
  280. # enabled - it started reporting ambiguous/duplicate target Boost Build
  281. # errors. Anyone requiring unversioned staged libraries needs to correct
  282. # those errors before reenabling this code. For more detailed information
  283. # see the related Boost library development mailing list thread at
  284. # 'http://lists.boost.org/Archives/boost/2012/06/194312.php'.
  285. # (06.07.2012.) (Jurko)
  286. #~ if $(layout-versioned) && ( [ modules.peek : NT ] || [ modules.peek : UNIX ] )
  287. #~ {
  288. #~ generate stage-unversioned : stage-proper :
  289. #~ <generating-rule>@boostcpp.make-unversioned-links ;
  290. #~ $(p).mark-target-as-explicit stage-unversioned ;
  291. #~
  292. #~ generate install-unversioned : install-proper :
  293. #~ <generating-rule>@boostcpp.make-unversioned-links ;
  294. #~ $(p).mark-target-as-explicit install-unversioned ;
  295. #~ }
  296. #~ else
  297. {
  298. # Create do-nothing aliases.
  299. alias stage-unversioned ;
  300. $(p).mark-target-as-explicit stage-unversioned ;
  301. alias install-unversioned ;
  302. $(p).mark-target-as-explicit install-unversioned ;
  303. }
  304. }
  305. ################################################################################
  306. #
  307. # 3. Declare top-level targets 'stage' and 'install'. These examine the
  308. # --build-type option and, in case it is 'complete', build the 'install-proper'
  309. # and 'stage-proper' targets with a number of property sets.
  310. #
  311. ################################################################################
  312. class top-level-target : alias-target-class
  313. {
  314. import modules ;
  315. rule __init__ ( name : project : sources * : requirements *
  316. : default-build * : usage-requirements * )
  317. {
  318. alias-target-class.__init__ $(name) : $(project) : $(sources) :
  319. $(requirements) : $(default-build) : $(usage-requirements) ;
  320. self.build-type = [ modules.peek boostcpp : build-type ] ;
  321. # On Linux, we build the release variant by default, since few users
  322. # will ever want to debug C++ Boost libraries, and there is no ABI
  323. # incompatibility between debug and release variants. We build shared
  324. # and static libraries since that is what most packages seem to provide
  325. # (.so in libfoo and .a in libfoo-dev).
  326. self.minimal-properties = [ property-set.create <variant>release
  327. <threading>multi <link>shared <link>static <runtime-link>shared ] ;
  328. # On Windows, new IDE projects use:
  329. #
  330. # runtime-link=dynamic, threading=multi, variant=(debug|release)
  331. #
  332. # and in addition, C++ Boost's autolink defaults to static linking.
  333. self.minimal-properties-win = [ property-set.create <variant>debug
  334. <variant>release <threading>multi <link>static <runtime-link>shared
  335. ] ;
  336. self.complete-properties = [ property-set.create
  337. <variant>debug <variant>release
  338. <threading>multi
  339. <link>shared <link>static
  340. <runtime-link>shared <runtime-link>static ] ;
  341. }
  342. rule generate ( property-set )
  343. {
  344. modules.poke : top-level-targets : [ modules.peek : top-level-targets ]
  345. $(self.name) ;
  346. if $(self.build-type) = minimal
  347. {
  348. local expanded ;
  349. local os = [ $(property-set).get <target-os> ] ;
  350. # Because we completely override the parent's 'generate' we need to
  351. # check for default feature values ourselves.
  352. if ! $(os)
  353. {
  354. os = [ feature.defaults <target-os> ] ;
  355. os = $(os:G=) ;
  356. }
  357. if $(os) = windows
  358. {
  359. expanded = [ targets.apply-default-build $(property-set)
  360. : $(self.minimal-properties-win) ] ;
  361. }
  362. else
  363. {
  364. expanded = [ targets.apply-default-build $(property-set)
  365. : $(self.minimal-properties) ] ;
  366. }
  367. return [ build-multiple $(expanded) ] ;
  368. }
  369. else if $(self.build-type) = complete
  370. {
  371. local expanded = [ targets.apply-default-build $(property-set)
  372. : $(self.complete-properties) ] ;
  373. # Filter inappopriate combinations.
  374. local filtered ;
  375. for local p in $(expanded)
  376. {
  377. # See comment in handle-static-runtime regarding this logic.
  378. if [ $(p).get <link> ] = shared
  379. && [ $(p).get <runtime-link> ] = static
  380. && [ $(p).get <toolset> ] != cw
  381. {
  382. # Skip this.
  383. }
  384. else
  385. {
  386. filtered += $(p) ;
  387. }
  388. }
  389. return [ build-multiple $(filtered) ] ;
  390. }
  391. else
  392. {
  393. import errors ;
  394. errors.error "Unknown build type" ;
  395. }
  396. }
  397. rule build-multiple ( property-sets * )
  398. {
  399. local usage-requirements = [ property-set.empty ] ;
  400. local result ;
  401. for local p in $(property-sets)
  402. {
  403. local r = [ alias-target-class.generate $(p) ] ;
  404. if $(r)
  405. {
  406. usage-requirements = [ $(usage-requirements).add $(r[1]) ] ;
  407. result += $(r[2-]) ;
  408. }
  409. }
  410. return $(usage-requirements) [ sequence.unique $(result) ] ;
  411. }
  412. }
  413. rule declare_top_level_targets ( libraries * : headers * )
  414. {
  415. declare_install_and_stage_proper_targets $(libraries) : $(headers) ;
  416. targets.create-metatarget top-level-target : [ project.current ]
  417. : install
  418. : install-proper install-unversioned
  419. ;
  420. targets.create-metatarget top-level-target : [ project.current ]
  421. : stage
  422. : stage-proper stage-unversioned
  423. ;
  424. p = [ project.current ] ;
  425. $(p).mark-target-as-explicit install stage ;
  426. # This target is built by default, and will forward to 'stage' after
  427. # producing some explanations.
  428. targets.create-metatarget top-level-target : [ project.current ]
  429. : forward
  430. : explain stage
  431. ;
  432. }
  433. stage-abs = [ path.native [ path.root $(stage-locate)/lib [ path.pwd ] ] ] ;
  434. ################################################################################
  435. #
  436. # 4. Add hook to report configuration before the build, and confirmation with
  437. # setup instructions after the build.
  438. #
  439. ################################################################################
  440. message explain : "\nBuilding the Boost C++ Libraries.\n\n" ;
  441. local p = [ project.current ] ;
  442. $(p).mark-target-as-explicit explain ;
  443. rule pre-build ( )
  444. {
  445. local tl = [ modules.peek : top-level-targets ] ;
  446. if stage in $(tl) || install in $(tl)
  447. {
  448. # FIXME: Remove 'if' when Boost regression tests start using trunk bjam.
  449. if PAD in [ RULENAMES ]
  450. {
  451. configure.print-component-configuration ;
  452. }
  453. }
  454. }
  455. IMPORT $(__name__) : pre-build : : $(__name__).pre-build ;
  456. build-system.set-pre-build-hook $(__name__).pre-build ;
  457. # FIXME: Revise stage_abs.
  458. rule post-build ( ok ? )
  459. {
  460. if forward in [ modules.peek : top-level-targets ]
  461. {
  462. if $(ok)
  463. {
  464. local include-path = [ path.native $(BOOST_ROOT) ] ;
  465. ECHO "
  466. The Boost C++ Libraries were successfully built!
  467. The following directory should be added to compiler include paths:
  468. $(include-path)
  469. The following directory should be added to linker library paths:
  470. $(stage-abs)
  471. " ;
  472. }
  473. }
  474. }
  475. IMPORT $(__name__) : post-build : : $(__name__).post-build ;
  476. build-system.set-post-build-hook $(__name__).post-build ;
  477. ################################################################################
  478. #
  479. # 5. Top-level setup.
  480. #
  481. ################################################################################
  482. # Decides which libraries are to be installed by looking at --with-<library>
  483. # --without-<library> arguments. Returns the list of directories under "libs"
  484. # which must be built and installed.
  485. #
  486. rule libraries-to-install ( existing-libs * )
  487. {
  488. local argv = [ modules.peek : ARGV ] ;
  489. local with-parameter = [ MATCH ^--with-(.*) : $(argv) ] ;
  490. local without-parameter = [ MATCH ^--without-(.*) : $(argv) ] ;
  491. if ! $(with-parameter) && ! $(without-parameter)
  492. {
  493. # Nothing is specified on command line. See if maybe project-config.jam
  494. # has some choices.
  495. local libs = [ modules.peek project-config : libraries ] ;
  496. with-parameter = [ MATCH ^--with-(.*) : $(libs) ] ;
  497. without-parameter = [ MATCH ^--without-(.*) : $(libs) ] ;
  498. }
  499. # Do some checks.
  500. if $(with-parameter) && $(without-parameter)
  501. {
  502. EXIT error: both --with-<library> and --without-<library> specified ;
  503. }
  504. local wrong = [ set.difference $(with-parameter) : $(existing-libs) ] ;
  505. if $(wrong)
  506. {
  507. EXIT error: wrong library name '$(wrong[1])' in the --with-<library>
  508. option. ;
  509. }
  510. local wrong = [ set.difference $(without-parameter) : $(existing-libs) ] ;
  511. if $(wrong)
  512. {
  513. EXIT error: wrong library name '$(wrong[1])' in the --without-<library>
  514. option. ;
  515. }
  516. if $(with-parameter)
  517. {
  518. return [ set.intersection $(existing-libs) : $(with-parameter) ] ;
  519. }
  520. else
  521. {
  522. return [ set.difference $(existing-libs) : $(without-parameter) ] ;
  523. }
  524. }
  525. rule declare-targets ( all-libraries * : headers * )
  526. {
  527. configure.register-components $(all-libraries) ;
  528. # Select the libraries to install.
  529. libraries = [ libraries-to-install $(all-libraries) ] ;
  530. configure.components-building $(libraries) ;
  531. if [ option.get "show-libraries" : : true ]
  532. {
  533. ECHO The following libraries require building: ;
  534. for local l in $(libraries)
  535. {
  536. ECHO " - $(l)" ;
  537. }
  538. EXIT ;
  539. }
  540. declare_top_level_targets $(libraries) : $(headers) ;
  541. }
  542. # Returns the properties identifying the toolset. We'll use them
  543. # below to configure checks. These are essentially same as in
  544. # configure.builds, except we don't use address-model and
  545. # architecture - as we're trying to detect them here.
  546. #
  547. rule toolset-properties ( properties * )
  548. {
  549. local toolset = [ property.select <toolset> : $(properties) ] ;
  550. local toolset-version-property = "<toolset-$(toolset:G=):version>" ;
  551. return [ property.select <target-os> <toolset> $(toolset-version-property) : $(properties) ] ;
  552. }
  553. feature.feature deduced-address-model : 32 64 : propagated optional composite hidden ;
  554. feature.compose <deduced-address-model>32 : <address-model>32 ;
  555. feature.compose <deduced-address-model>64 : <address-model>64 ;
  556. rule deduce-address-model ( properties * )
  557. {
  558. local result ;
  559. local filtered = [ toolset-properties $(properties) ] ;
  560. if [ configure.builds /boost/architecture//32 : $(filtered) : 32-bit ]
  561. {
  562. result = 32 ;
  563. }
  564. else if [ configure.builds /boost/architecture//64 : $(filtered) : 64-bit ]
  565. {
  566. result = 64 ;
  567. }
  568. if $(result)
  569. {
  570. # Normally, returning composite feature here is equivalent to forcing
  571. # consituent properties as well. But we only want to indicate toolset
  572. # deduced default, so also pick whatever address-model is explicitly
  573. # specified, if any.
  574. result = <deduced-address-model>$(result) [ property.select <address-model> : $(properties) ] ;
  575. }
  576. return $(result) ;
  577. }
  578. rule address-model ( )
  579. {
  580. return <conditional>@boostcpp.deduce-address-model ;
  581. }
  582. local deducable-architectures = arm mips1 power sparc x86 combined ;
  583. feature.feature deduced-architecture : $(deducable-architectures) : propagated optional composite hidden ;
  584. for a in $(deducable-architectures)
  585. {
  586. feature.compose <deduced-architecture>$(a) : <architecture>$(a) ;
  587. }
  588. rule deduce-architecture ( properties * )
  589. {
  590. local result ;
  591. local filtered = [ toolset-properties $(properties) ] ;
  592. if [ configure.builds /boost/architecture//arm : $(filtered) : arm ]
  593. {
  594. result = arm ;
  595. }
  596. else if [ configure.builds /boost/architecture//mips1 : $(filtered) : mips1 ]
  597. {
  598. result = mips1 ;
  599. }
  600. else if [ configure.builds /boost/architecture//power : $(filtered) : power ]
  601. {
  602. result = power ;
  603. }
  604. else if [ configure.builds /boost/architecture//sparc : $(filtered) : sparc ]
  605. {
  606. result = sparc ;
  607. }
  608. else if [ configure.builds /boost/architecture//x86 : $(filtered) : x86 ]
  609. {
  610. result = x86 ;
  611. }
  612. else if [ configure.builds /boost/architecture//combined : $(filtered) : combined ]
  613. {
  614. result = combined ;
  615. }
  616. if $(result)
  617. {
  618. # See comment in deduce-address-model.
  619. result = <deduced-architecture>$(result) [ property.select <architecture> : $(properties) ] ;
  620. }
  621. return $(result) ;
  622. }
  623. rule architecture ( )
  624. {
  625. return <conditional>@boostcpp.deduce-architecture ;
  626. }
粤ICP备19079148号