[haiku-commits] haiku: hrev52146 - build/jam

  • From: Alexander von Gluck IV <kallisti5@xxxxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Wed, 1 Aug 2018 10:15:11 -0400 (EDT)

hrev52146 adds 1 changeset to branch 'master'
old head: 01535bc2340124b491fa9f67db9065cd06305f62
new head: e667d7db02324d00f207974ea9aacc04d061e6ce
overview: 
https://git.haiku-os.org/haiku/log/?qt=range&q=e667d7db0232+%5E01535bc23401

----------------------------------------------------------------------------

e667d7db0232: arm: Tune default architecture target
  
  We lost these tunings when I moved us away from board focused
  builds. I feel like most of our ARM interest is around ARMv7+
  
  Change-Id: Ie301d275a74d48ee3d0c4c7dc7d6cdd635288a7b

                          [ Alexander von Gluck IV <kallisti5@xxxxxxxxxxx> ]

----------------------------------------------------------------------------

Revision:    hrev52146
Commit:      e667d7db02324d00f207974ea9aacc04d061e6ce
URL:         https://git.haiku-os.org/haiku/commit/?id=e667d7db0232
Author:      Alexander von Gluck IV <kallisti5@xxxxxxxxxxx>
Date:        Wed Aug  1 14:03:35 2018 UTC

----------------------------------------------------------------------------

1 file changed, 7 insertions(+)
build/jam/ArchitectureRules | 7 +++++++

----------------------------------------------------------------------------

diff --git a/build/jam/ArchitectureRules b/build/jam/ArchitectureRules
index 6ea2d8fd56..de08e22ad4 100644
--- a/build/jam/ArchitectureRules
+++ b/build/jam/ArchitectureRules
@@ -49,7 +49,14 @@ rule ArchitectureSetup architecture
                        -Wno-cast-align -Wno-gnu-designator ;
        }
 
+       # default architecture tuning
+       # TODO: Do we want x86_gcc2 -march=pentium here?
        local cpu = $(HAIKU_CPU_$(architecture)) ;
+       switch $(cpu) {
+               case arm :
+                       ccBaseFlags += -march=armv7-a -mfloat-abi=hard ;
+       }
+
        if $(cpu) = arm {
                if $(HAIKU_CC_IS_CLANG_$(architecture)) != 1 {
                        # For stackcrawls - not supported by Clang


Other related posts:

  • » [haiku-commits] haiku: hrev52146 - build/jam - Alexander von Gluck IV