Fixed imgui-node-editor build when using GCC.

This commit is contained in:
Patrick 2025-03-13 18:36:07 +01:00
parent 4082f8cb22
commit ba5def01b0

View File

@ -16,6 +16,8 @@ def _git_cook(env: Environment, repo: dict) -> dict:
ccflags = list(env['CCFLAGS']) ccflags = list(env['CCFLAGS'])
if env['COMPILER_FAMILY'] == 'cl': if env['COMPILER_FAMILY'] == 'cl':
ccflags.append('/wd4100') ccflags.append('/wd4100')
elif env['COMPILER_FAMILY'] == 'gcc':
ccflags.extend(('-Wno-comment', '-Wno-unused-but-set-variable', '-Wno-unused-parameter'))
lib_ine = env.StaticLibrary( lib_ine = env.StaticLibrary(
CPPPATH = [repo['checkout_root']], CPPPATH = [repo['checkout_root']],
CCFLAGS = ccflags, CCFLAGS = ccflags,