Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: compile

Issue 29613611: Noissue - fix debug build (Closed) Base URL: https://github.com/adblockplus/adblockpluscore.git
Patch Set: Created Nov. 21, 2017, 12:19 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | compiled/intrusive_ptr.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 2
3 # This file is part of Adblock Plus <https://adblockplus.org/>, 3 # This file is part of Adblock Plus <https://adblockplus.org/>,
4 # Copyright (C) 2006-present eyeo GmbH 4 # Copyright (C) 2006-present eyeo GmbH
5 # 5 #
6 # Adblock Plus is free software: you can redistribute it and/or modify 6 # Adblock Plus is free software: you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License version 3 as 7 # it under the terms of the GNU General Public License version 3 as
8 # published by the Free Software Foundation. 8 # published by the Free Software Foundation.
9 # 9 #
10 # Adblock Plus is distributed in the hope that it will be useful, 10 # Adblock Plus is distributed in the hope that it will be useful,
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 '-o', COMPILER_OUTPUT, 91 '-o', COMPILER_OUTPUT,
92 '--post-js', BINDINGS_OUTPUT, 92 '--post-js', BINDINGS_OUTPUT,
93 ] 93 ]
94 # Order matters. We sort source files so that we always get the same 94 # Order matters. We sort source files so that we always get the same
95 # results for the same source code. 95 # results for the same source code.
96 params.extend(sorted(get_source_files('compile'))) 96 params.extend(sorted(get_source_files('compile')))
97 params.extend('-D' + flag for flag in DEFINES) 97 params.extend('-D' + flag for flag in DEFINES)
98 for key, value in GENERATION_PARAMS.iteritems(): 98 for key, value in GENERATION_PARAMS.iteritems():
99 params.extend(['-s', '{}={}'.format(key, str(value))]) 99 params.extend(['-s', '{}={}'.format(key, str(value))])
100 if debug: 100 if debug:
101 params.append('-DDEBUG')
101 params.append('-g3') 102 params.append('-g3')
102 if tracing: 103 if tracing:
103 params.append('--tracing') 104 params.append('--tracing')
104 params.extend(ADDITIONAL_PARAMS) 105 params.extend(ADDITIONAL_PARAMS)
105 subprocess.check_call(params, env=env) 106 subprocess.check_call(params, env=env)
106 107
107 108
108 if __name__ == '__main__': 109 if __name__ == '__main__':
109 parser = argparse.ArgumentParser( 110 parser = argparse.ArgumentParser(
110 description='Compile Emscripten-based C++ code to JavaScript' 111 description='Compile Emscripten-based C++ code to JavaScript'
(...skipping 12 matching lines...) Expand all
123 parser.add_argument( 124 parser.add_argument(
124 '-t', '--tracing', 125 '-t', '--tracing',
125 action='store_true', 126 action='store_true',
126 help='Enable memory tracing' 127 help='Enable memory tracing'
127 ) 128 )
128 args = parser.parse_args() 129 args = parser.parse_args()
129 130
130 env = getenv(args.emscripten_config) 131 env = getenv(args.emscripten_config)
131 generate_bindings(env) 132 generate_bindings(env)
132 run_compiler(env, debug=args.debug, tracing=args.tracing) 133 run_compiler(env, debug=args.debug, tracing=args.tracing)
OLDNEW
« no previous file with comments | « no previous file | compiled/intrusive_ptr.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld