Skip to content

Commit d38e9d4

Browse files
committed
Fix scons compilation flag for windows. Use git describe with '--tags' to handle lightweight tags
1 parent eda6766 commit d38e9d4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

SConstruct

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ if platform.system().lower() == "windows":
160160
env.AppendUnique(CPPDEFINES='BOOST_ALL_NO_LIB')
161161
# Prevent the generation of an import lib (.lib) in addition to the dll
162162
# env.AppendUnique(no_import_lib=1)
163-
env.PrependUnique(CCFLAGS=['/Ox', '/EHsc', '/MD'])
163+
env.PrependUnique(CCFLAGS=['/Ox', '/EHsc', '/MD', '/DREAL=double'])
164164
env.AppendUnique(CPPDEFINES={'NDEBUG': None})
165165
else:
166166
if 'CONDA_BUILD' not in os.environ:

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def create_extensions():
101101
def gitinfo():
102102
from subprocess import Popen, PIPE
103103
kw = dict(stdout=PIPE, cwd=MYDIR, universal_newlines=True)
104-
proc = Popen(['git', 'describe', '--match=v[[:digit:]]*'], **kw)
104+
proc = Popen(['git', 'describe', '--match=v[[:digit:]]*', '--tags'], **kw)
105105
desc = proc.stdout.read()
106106
proc = Popen(['git', 'log', '-1', '--format=%H %ct %ci'], **kw)
107107
glog = proc.stdout.read()

0 commit comments

Comments
 (0)