<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div dir="ltr"></div><div dir="ltr">I</div><div dir="ltr"><br><blockquote type="cite">On 31 Dec 2021, at 5:13 pm, Vincent Habchi <vince@macports.org> wrote:<br><br></blockquote></div><blockquote type="cite"><div dir="ltr"><span>Folks,</span><br><span></span><br><span>finally put my hands on my brand new MacBook Pro 14”! (Well, not really mine, rather my company’s, but let’s pretend…)</span><br><span></span><br><span>I was wondering if there is a simple scheme to detect on which type of architecture MacPorts is running. My problem here is that clang on M1 does not honour the -march flag and exits with an error.</span><br></div></blockquote><div><br></div><span class="pl-k" style="color: var(--color-prettylights-syntax-keyword); box-sizing: border-box; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; font-size: 12px; white-space: pre; -webkit-text-size-adjust: 100%;">if</span><span style="caret-color: rgb(49, 59, 69); color: rgb(49, 59, 69); font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; font-size: 12px; white-space: pre; -webkit-text-size-adjust: 100%; background-color: rgb(255, 255, 255);"> {</span><span class="pl-smi" style="box-sizing: border-box; color: rgb(49, 59, 69); caret-color: rgb(49, 59, 69); font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; font-size: 12px; white-space: pre; -webkit-text-size-adjust: 100%;">${os.arch}</span><span style="caret-color: rgb(49, 59, 69); color: rgb(49, 59, 69); font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; font-size: 12px; white-space: pre; -webkit-text-size-adjust: 100%; background-color: rgb(255, 255, 255);"> eq </span><span class="pl-s" style="color: var(--color-prettylights-syntax-string); box-sizing: border-box; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; font-size: 12px; white-space: pre; -webkit-text-size-adjust: 100%;"><span class="pl-pds" style="box-sizing: border-box; color: var(--color-prettylights-syntax-string);">"</span>arm<span class="pl-pds" style="box-sizing: border-box; color: var(--color-prettylights-syntax-string);">"</span></span><span style="caret-color: rgb(49, 59, 69); color: rgb(49, 59, 69); font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; font-size: 12px; white-space: pre; -webkit-text-size-adjust: 100%; background-color: rgb(255, 255, 255);">} {</span><div><font color="#313b45" face="ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace"><span style="caret-color: rgb(49, 59, 69); font-size: 12px; white-space: pre; -webkit-text-size-adjust: 100%; background-color: rgb(255, 255, 255);">…</span></font></div><div><font color="#313b45" face="ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace"><span style="caret-color: rgb(49, 59, 69); font-size: 12px; white-space: pre; -webkit-text-size-adjust: 100%; background-color: rgb(255, 255, 255);">}</span></font></div><div><font color="#313b45" face="ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace"><span style="caret-color: rgb(49, 59, 69); font-size: 12px; white-space: pre; -webkit-text-size-adjust: 100%; background-color: rgb(255, 255, 255);"><br></span></font><blockquote type="cite"><div dir="ltr"><span></span><br><span>Thanks and early happy new year to all!</span><br><span></span><br><span>Vincent</span><br><span></span><br></div></blockquote></div></body></html>