Browse Source

Fix #1536

Don't assume machine which built ZNC has the same compiler as where
znc-buildmod runs.

The old code was needed before 3b3a0ac291
1.7.x
Alexey Sokolov 2 years ago
parent
commit
d71331259a
1 changed files with 1 additions and 8 deletions
  1. +1
    -8
      znc-buildmod.cmake.in

+ 1
- 8
znc-buildmod.cmake.in View File

@ -78,14 +78,7 @@ with tempfile.TemporaryDirectory() as cmdir:
print(cm.read())
with tempfile.TemporaryDirectory() as build:
command = ['cmake', '-G@CMAKE_GENERATOR@',
'-DCMAKE_C_COMPILER=@CMAKE_C_COMPILER@',
'-DCMAKE_CXX_COMPILER=@CMAKE_CXX_COMPILER@',
'-DCMAKE_CXX_FLAGS={} @CMAKE_CXX_FLAGS@'.format(
os.environ.get('CXXFLAGS', '')),
'-DCMAKE_MODULE_LINKER_FLAGS={} @CMAKE_MODULE_LINKER_FLAGS@'.format(
os.environ.get('LDFLAGS', '')),
cmdir]
command = ['cmake', cmdir]
if args.verbose > 1:
cmd.append('--debug-output')
if args.verbose > 2:

Loading…
Cancel
Save