On 2011-7-30 11:24 , Ryan Schmidt wrote: > > On Jul 29, 2011, at 20:01, Joshua Root wrote: > >> Bear in mind that it won't return the universal flags if it's called >> before a universal variant has been declared. A good rule of thumb to >> avoid problems is to only call it inside a phase. > > Most of the instances where I want to use this, I want to do it outside of a > phase, as in: > > variant universal {} > if {[variant_isset universal]} { > set archflags ${configure.universal_cflags} > } else { > set archflags ${configure.cc_archflags} > } > build.env CC="${configure.cc} ${archflags}" > > But it should be fine to do this right? > > variant universal {} > build.env CC="${configure.cc} [get_canonical_archflags]"
Yes -- but you *could* set build.env in pre-build. - Josh _______________________________________________ macports-dev mailing list macports-dev@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macports-dev