Enhance SConstruct by enabling arbitrary compiler flags (#30484)

* Update SConstruct allow no-inline

Allows disabling inline functions when compiling to help with the debugging process

* Update SConstruct

typos

* Update SConstruct
pull/30488/head
DevTekVE 2 years ago committed by GitHub
parent 3b1e9017c5
commit 05e4d908df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 10
      SConstruct

@ -38,6 +38,12 @@ AddOption('--compile_db',
action='store_true',
help='build clang compilation database')
AddOption('--ccflags',
action='store',
type='string',
default='',
help='pass arbitrary flags over the command line')
AddOption('--snpe',
action='store_true',
help='use SNPE on PC')
@ -170,6 +176,10 @@ if arch != "Darwin":
cflags += ['-DSWAGLOG="\\"common/swaglog.h\\""']
cxxflags += ['-DSWAGLOG="\\"common/swaglog.h\\""']
ccflags_option = GetOption('ccflags')
if ccflags_option:
ccflags += ccflags_option.split(' ')
env = Environment(
ENV=lenv,
CCFLAGS=[

Loading…
Cancel
Save