Skip to content
Browse files

gmp: Ensure correct compiler is used to test processor.

Add warning that exact processor was not found.

git-svn-id: d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
MarcusCalhoun-Lopez committed Apr 10, 2011
1 parent b460f44 commit 2f9ad8fd67d43ed17749c667ba5bb3a12b910b29
Showing with 2 additions and 1 deletion.
  1. +2 −1 devel/gmp/Portfile
@@ -65,9 +65,10 @@ if {![variant_isset universal]} {
configure.env ABI=64
# fails to correctly detect some x86_64 models (e.g. Sandy Bridge)
pre-configure {
set build_triplet [split [exec ${worksrcpath}/config.guess] -]
set build_triplet [split [exec /usr/bin/env CC=${} ${worksrcpath}/config.guess] -]
set build_cpu [lindex $build_triplet 0]
if {$build_cpu != "core2" && $build_cpu != "corei"} {
ui_warn "No processor dependent assembly code being used. gmp might be slower."
configure.args-append --build=x86_64-[join [lrange $build_triplet 1 end] -]

0 comments on commit 2f9ad8f

Please sign in to comment.
You can’t perform that action at this time.