pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/benchmarks/glmark2



Module Name:    pkgsrc
Committed By:   joerg
Date:           Sun Dec 22 22:21:58 UTC 2019

Modified Files:
        pkgsrc/benchmarks/glmark2: distinfo
Added Files:
        pkgsrc/benchmarks/glmark2/patches: patch-waflib_Tools_c__config.py

Log Message:
When using -dM -E to detect the C++ compiler, force C++ mode. Otherwise
-std=c++11 will break with clang.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 pkgsrc/benchmarks/glmark2/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/benchmarks/glmark2/patches/patch-waflib_Tools_c__config.py

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/benchmarks/glmark2/distinfo
diff -u pkgsrc/benchmarks/glmark2/distinfo:1.6 pkgsrc/benchmarks/glmark2/distinfo:1.7
--- pkgsrc/benchmarks/glmark2/distinfo:1.6      Sat Jun  2 13:16:42 2018
+++ pkgsrc/benchmarks/glmark2/distinfo  Sun Dec 22 22:21:58 2019
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.6 2018/06/02 13:16:42 prlw1 Exp $
+$NetBSD: distinfo,v 1.7 2019/12/22 22:21:58 joerg Exp $
 
 SHA1 (glmark2-2017.07-168d2f1650c84be3f13d1a5b76ccec8cbb89188e.tar.gz) = 5a27940b9e4ae2a1bc025079802e116af127479a
 RMD160 (glmark2-2017.07-168d2f1650c84be3f13d1a5b76ccec8cbb89188e.tar.gz) = 60572134a88fb3fd1a95f3be35d26b6c4edd852b
 SHA512 (glmark2-2017.07-168d2f1650c84be3f13d1a5b76ccec8cbb89188e.tar.gz) = 
9e2c8a2e2da5514476c3fe09e5d87380654b052b8488cfff2d7b06127bfcb92ca81eac09aea34d194ac4e0b9a0758696cc0ac0d4bc1117be5ed858a0ee22a3cc
 Size (glmark2-2017.07-168d2f1650c84be3f13d1a5b76ccec8cbb89188e.tar.gz) = 7827207 bytes
+SHA1 (patch-waflib_Tools_c__config.py) = 8bb7716b211731cb8cfa8a73276e950fa363f710

Added files:

Index: pkgsrc/benchmarks/glmark2/patches/patch-waflib_Tools_c__config.py
diff -u /dev/null pkgsrc/benchmarks/glmark2/patches/patch-waflib_Tools_c__config.py:1.1
--- /dev/null   Sun Dec 22 22:21:58 2019
+++ pkgsrc/benchmarks/glmark2/patches/patch-waflib_Tools_c__config.py   Sun Dec 22 22:21:58 2019
@@ -0,0 +1,16 @@
+$NetBSD: patch-waflib_Tools_c__config.py,v 1.1 2019/12/22 22:21:58 joerg Exp $
+
+When detecting the C++ compiler, force C++ mode for stdin as the wrappers
+add -std=c++11 and that breaks for C input.
+
+--- waflib/Tools/c_config.py.orig      2019-12-21 22:11:24.000906920 +0000
++++ waflib/Tools/c_config.py
+@@ -632,7 +632,7 @@ def cxx_load_tools(conf):
+       conf.load('cxx')
+ @conf
+ def get_cc_version(conf,cc,gcc=False,icc=False,clang=False):
+-      cmd=cc+['-dM','-E','-']
++      cmd=cc+(['-x','c++']if cc[0].endswith('+')else[])+['-dM','-E','-']
+       env=conf.env.env or None
+       try:
+               out,err=conf.cmd_and_log(cmd,output=0,input='\n'.encode(),env=env)



Home | Main Index | Thread Index | Old Index