freebsd.mk (8cb913c4) | freebsd.mk (d59d07b5) |
---|---|
1#************************************************************************* 2# 3# Licensed to the Apache Software Foundation (ASF) under one 4# or more contributor license agreements. See the NOTICE file 5# distributed with this work for additional information 6# regarding copyright ownership. The ASF licenses this file 7# to you under the Apache License, Version 2.0 (the 8# "License"); you may not use this file except in compliance --- 132 unchanged lines hidden (view full) --- 141 -Wl,-Bsymbolic-functions \ 142 143endif 144 145ifeq ($(gb_DEBUGLEVEL),2) 146gb_COMPILEROPTFLAGS := -O0 147gb_COMPILEROPT1FLAGS := -O0 148else | 1#************************************************************************* 2# 3# Licensed to the Apache Software Foundation (ASF) under one 4# or more contributor license agreements. See the NOTICE file 5# distributed with this work for additional information 6# regarding copyright ownership. The ASF licenses this file 7# to you under the Apache License, Version 2.0 (the 8# "License"); you may not use this file except in compliance --- 132 unchanged lines hidden (view full) --- 141 -Wl,-Bsymbolic-functions \ 142 143endif 144 145ifeq ($(gb_DEBUGLEVEL),2) 146gb_COMPILEROPTFLAGS := -O0 147gb_COMPILEROPT1FLAGS := -O0 148else |
149# Clang versions 3.6.x and 3.7.x generate bad DWARF CFI for stack unwinding 150# on 32-bit Intel when compiling with -Os optimization. See 151# <https://llvm.org/bugs/show_bug.cgi?id=24792> 152# Work around this by using "-O2 -fno-unroll-loops" instead. 153ifeq ($(COM)$(CPUNAME)$(shell expr $(CCNUMVER) '>=' 000300060000 '&' $(CCNUMVER) '<' 000300080000),CLANGINTEL1) 154gb_COMPILEROPTFLAGS := -O2 -fno-unroll-loops 155else |
|
149gb_COMPILEROPTFLAGS := -Os | 156gb_COMPILEROPTFLAGS := -Os |
157endif |
|
150gb_COMPILEROPT1FLAGS := -O1 151endif 152 153gb_COMPILERNOOPTFLAGS := -O0 154 155# Helper class 156 157gb_Helper_abbreviate_dirs_native = $(gb_Helper_abbreviate_dirs) --- 313 unchanged lines hidden --- | 158gb_COMPILEROPT1FLAGS := -O1 159endif 160 161gb_COMPILERNOOPTFLAGS := -O0 162 163# Helper class 164 165gb_Helper_abbreviate_dirs_native = $(gb_Helper_abbreviate_dirs) --- 313 unchanged lines hidden --- |