Ticket #12044: 0001-Do-not-pass-Ofast-to-pathscale-toolset.patch

File 0001-Do-not-pass-Ofast-to-pathscale-toolset.patch, 998 bytes (added by Michał Górny <mgorny@…>, 7 years ago)

The patch

  • src/engine/build.jam

    From a7ef7c60c715b930778bcff8ce9fa5bee2600d6c Mon Sep 17 00:00:00 2001
    From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org>
    Date: Sun, 6 Mar 2016 18:20:51 +0100
    Subject: [PATCH] Do not pass -Ofast to pathscale toolset
    
    Do not pass -Ofast when using the pathscale toolset. It enables insecure
    optimizations, and that is probably why no other toolset uses this
    option. It also causes internal compiler problems with current pathcc
    versions.
    ---
     src/engine/build.jam | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/src/engine/build.jam b/src/engine/build.jam
    index 787b230..ad2ea35 100644
    a b toolset qcc qcc : "-o " : -D  
    304304## Qlogic Pathscale 2.4
    305305toolset pathscale pathcc : "-o " : -D
    306306    :
    307     [ opt --release : -s -Ofast -O3 ]
     307    [ opt --release : -s -O3 ]
    308308    [ opt --debug : -g ]
    309309    -I$(--python-include) -I$(--extra-include)
    310310    : -L$(--python-lib[1]) -l$(--python-lib[2]) ;