Ticket #9859: chrono.patch

File chrono.patch, 3.4 KB (added by Steven Watanabe, 9 years ago)

Patch to fix the issue

  • build/Jamfile.v2

    diff --git a/build/Jamfile.v2 b/build/Jamfile.v2
    index 1b22a16..c591e24 100644
    a b project boost/chrono  
    4949        <toolset>clang:<cxxflags>-pedantic
    5050        <toolset>clang:<cxxflags>-Wno-long-long
    5151        <toolset>clang:<cxxflags>-Wno-variadic-macros
    52         <toolset>gcc-mingw-4.4.0:<cxxflags>-fdiagnostics-show-option
    53         <toolset>gcc-mingw-4.5.0:<cxxflags>-fdiagnostics-show-option
    54         <toolset>gcc-mingw-4.6.0:<cxxflags>-fdiagnostics-show-option
    55         <toolset>gcc-mingw-4.6.3:<cxxflags>-fdiagnostics-show-option
    56         <toolset>gcc-mingw-4.7.0:<cxxflags>-fdiagnostics-show-option
    57         <toolset>gcc-mingw-4.8.0:<cxxflags>-fdiagnostics-show-option
     52        <toolset>gcc-4.4.0,<target-os>windows:<cxxflags>-fdiagnostics-show-option
     53        <toolset>gcc-4.5.0,<target-os>windows:<cxxflags>-fdiagnostics-show-option
     54        <toolset>gcc-4.6.0,<target-os>windows:<cxxflags>-fdiagnostics-show-option
     55        <toolset>gcc-4.6.3,<target-os>windows:<cxxflags>-fdiagnostics-show-option
     56        <toolset>gcc-4.7.0,<target-os>windows:<cxxflags>-fdiagnostics-show-option
     57        <toolset>gcc-4.8.0,<target-os>windows:<cxxflags>-fdiagnostics-show-option
    5858        <toolset>msvc:<cxxflags>/wd4512
    5959
    6060# Note: Some of the remarks from the Intel compiler are disabled
    project boost/chrono  
    9797        <link>static:<define>BOOST_CHRONO_STATIC_LINK=1
    9898        <toolset>gcc-3.4.4:<linkflags>--enable-auto-import
    9999        <toolset>gcc-4.3.4:<linkflags>--enable-auto-import
    100         <toolset>gcc-mingw-4.4.0:<linkflags>--enable-auto-import
    101         <toolset>gcc-mingw-4.5.0:<linkflags>--enable-auto-import
     100        <toolset>gcc-4.4.0,<target-os>windows:<linkflags>--enable-auto-import
     101        <toolset>gcc-4.5.0,<target-os>windows:<linkflags>--enable-auto-import
    102102    ;
    103103
    104104SOURCES = chrono thread_clock process_cpu_clocks ;
  • perf/Jamfile.v2

    diff --git a/perf/Jamfile.v2 b/perf/Jamfile.v2
    index 20f048e..c0891ed 100644
    a b project  
    3434        <toolset>clang:<cxxflags>-Wextra
    3535        <toolset>clang:<cxxflags>-pedantic
    3636        <toolset>clang:<cxxflags>-Wno-long-long
    37         <toolset>gcc-mingw-4.5.0:<cxxflags>-Wno-missing-field-initializers
    38         <toolset>gcc-mingw-4.5.0:<cxxflags>-fdiagnostics-show-option
     37        <toolset>gcc-4.5.0,<target-os>windows:<cxxflags>-Wno-missing-field-initializers
     38        <toolset>gcc-4.5.0,<target-os>windows:<cxxflags>-fdiagnostics-show-option
    3939        <toolset>msvc:<cxxflags>/wd4127
    4040# Note: Some of the remarks from the Intel compiler are disabled
    4141# remark #304: access control not specified ("public" by default)
  • test/Jamfile.v2

    diff --git a/test/Jamfile.v2 b/test/Jamfile.v2
    index 0cd79bb..5b47568 100644
    a b project  
    4040        <toolset>clang:<cxxflags>-pedantic
    4141        <toolset>clang:<cxxflags>-Wno-long-long
    4242        <toolset>clang:<cxxflags>-Wno-variadic-macros
    43         <toolset>gcc-mingw-4.5.0:<cxxflags>-Wno-missing-field-initializers
    44         <toolset>gcc-mingw-4.5.0:<cxxflags>-fdiagnostics-show-option
     43        <toolset>gcc-4.5.0,<target-os>windows:<cxxflags>-Wno-missing-field-initializers
     44        <toolset>gcc-4.5.0,<target-os>windows:<cxxflags>-fdiagnostics-show-option
    4545        <toolset>msvc:<cxxflags>/wd4127
    4646        <toolset>msvc:<cxxflags>/wd4512
    4747# Note: Some of the remarks from the Intel compiler are disabled