]> granicus.if.org Git - graphviz/commitdiff
don't squash -O2 when using ICC
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 19 Sep 2020 16:56:58 +0000 (09:56 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 26 Sep 2020 01:10:05 +0000 (18:10 -0700)
ICC is Intel's C Compiler. All recent versions of it *do* support `-O2`.

CHANGELOG.md
configure.ac

index 2948e0961bbdc395d1a0f9809d42af45edeabdb0..428bb3185a19a1ceb66e2b17b15b360e7ff98e22 100644 (file)
@@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
 ### Changed
 - Cgraph's agheap() API has been removed
 - Autotools build system support for eFence has been removed
+- Building Graphviz with ICC defaults to -O2 instead of -O0
 
 ### Fixed
 - gvpr: line numbers in gvpr errors/warnings are incorrect #1594
index 9a400b01be2c123eb85c52d90f47cc160e1818e7..72308fca0f70c5ca3861a0c2e48f4f6cff9c6abc 100644 (file)
@@ -364,8 +364,6 @@ else
            CFLAGS=`echo ${CFLAGS} | sed 's/ -pipe//'`
            # icc doesn't like -ffast-math
            CFLAGS=`echo ${CFLAGS} | sed 's/ -ffast-math//'`
-           # icc doesn't like -O2
-           CFLAGS=`echo ${CFLAGS} | sed 's/ -O2/ -O0/'`
            ;;
        * )
            case "${build}" in