OLD | NEW |
1 # Copyright (c) 2012 The Native Client Authors. All rights reserved. | 1 # Copyright (c) 2012 The Native Client Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 ###################################################################### | 5 ###################################################################### |
6 # CONFIG | 6 # CONFIG |
7 ###################################################################### | 7 ###################################################################### |
8 | 8 |
9 # NOTE: we assume you have a symlink "CLIENT" in this directory pointing | 9 # NOTE: we assume you have a symlink "CLIENT" in this directory pointing |
10 # to your .../native_client directory | 10 # to your .../native_client directory |
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
319 PNACL_BIN=$(PNACL_ROOT)/bin | 319 PNACL_BIN=$(PNACL_ROOT)/bin |
320 # Sandboxed translation uses the standalone translator install (which only | 320 # Sandboxed translation uses the standalone translator install (which only |
321 # supports sandboxed translation). This allows it to run on the arm hardware | 321 # supports sandboxed translation). This allows it to run on the arm hardware |
322 # bots, which have no native toolchain build. | 322 # bots, which have no native toolchain build. |
323 PNACL_TRANSLATOR=$(TIME_TRANSLATE) $(PNACL_BIN)/pnacl-translate \ | 323 PNACL_TRANSLATOR=$(TIME_TRANSLATE) $(PNACL_BIN)/pnacl-translate \ |
324 $(EXTRA_TRANSLATOR_FLAGS) | 324 $(EXTRA_TRANSLATOR_FLAGS) |
325 PNACL_TRANSLATOR_SB=$(TIME_TRANSLATE) \ | 325 PNACL_TRANSLATOR_SB=$(TIME_TRANSLATE) \ |
326 $(PNACL_TRANSLATOR_ROOT)/bin/pnacl-translate --pnacl-sb | 326 $(PNACL_TRANSLATOR_ROOT)/bin/pnacl-translate --pnacl-sb |
327 PNACL_TRANSLATOR_SB_EMU=$(PNACL_TRANSLATOR_SB) --pnacl-use-emulator \ | 327 PNACL_TRANSLATOR_SB_EMU=$(PNACL_TRANSLATOR_SB) --pnacl-use-emulator \ |
328 $(EXTRA_TRANSLATOR_FLAGS) | 328 $(EXTRA_TRANSLATOR_FLAGS) |
329 PNACL_CC=$(PNACL_BIN)/pnacl-clang | 329 PNACL_CC=$(TC_ROOT)/../toolchain_build/src/subzero/pydir/sz-clang.py \ |
330 PNACL_CXX=$(PNACL_BIN)/pnacl-clang++ | 330 -fsanitize-address |
331 PNACL_FINALIZE=$(PNACL_BIN)/pnacl-finalize | 331 PNACL_CXX=$(TC_ROOT)/../toolchain_build/src/subzero/pydir/sz-clang++.py \ |
| 332 -fsanitize-address |
| 333 PNACL_FINALIZE=$(PNACL_BIN)/pnacl-finalize --no-strip-syms |
332 PNACL_FLAGS=--pnacl-driver-verbose | 334 PNACL_FLAGS=--pnacl-driver-verbose |
333 | 335 |
334 PNACL_FLAGS_COMMON=$(PNACL_FLAGS) $(CFLAGS) | 336 PNACL_FLAGS_COMMON=$(PNACL_FLAGS) $(CFLAGS) |
335 | 337 |
336 %.bc: %.c | 338 %.bc: %.c |
337 $(PNACL_CC) -O0 $(PNACL_FLAGS_COMMON) $< -c -o $@ | 339 $(PNACL_CC) -O0 $(PNACL_FLAGS_COMMON) $< -c -o $@ |
338 %.bc: %.cc | 340 %.bc: %.cc |
339 $(PNACL_CXX) -O0 $(PNACL_FLAGS_COMMON) $< -c -o $@ | 341 $(PNACL_CXX) -O0 $(PNACL_FLAGS_COMMON) $< -c -o $@ |
340 | 342 |
341 %.o3.bc: %.c | 343 %.o3.bc: %.c |
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
530 | 532 |
531 $(IT).pnacl_translator_fast_1thread.opt.x8664: $(IT).opt.stripped.pexe | 533 $(IT).pnacl_translator_fast_1thread.opt.x8664: $(IT).opt.stripped.pexe |
532 $(PNACL_TRANSLATOR_SB) $(PNACL_FLAGS) $(PNACL_TRANSLATOR_FLAGS_FAST) \ | 534 $(PNACL_TRANSLATOR_SB) $(PNACL_FLAGS) $(PNACL_TRANSLATOR_FLAGS_FAST) \ |
533 $^ -o $@ -arch x86-64 -threads=seq | 535 $^ -o $@ -arch x86-64 -threads=seq |
534 @$(call LOG_TIME_AND_SIZE,$@,$(IT)) | 536 @$(call LOG_TIME_AND_SIZE,$@,$(IT)) |
535 | 537 |
536 $(IT).pnacl_translator_fast_1thread.opt.sz.x8664: $(IT).opt.stripped.pexe | 538 $(IT).pnacl_translator_fast_1thread.opt.sz.x8664: $(IT).opt.stripped.pexe |
537 $(PNACL_TRANSLATOR_SB) $(PNACL_FLAGS) $(PNACL_SZ_FLAGS) \ | 539 $(PNACL_TRANSLATOR_SB) $(PNACL_FLAGS) $(PNACL_SZ_FLAGS) \ |
538 $^ -o $@ -arch x86-64 -threads=seq | 540 $^ -o $@ -arch x86-64 -threads=seq |
539 @$(call LOG_TIME_AND_SIZE,$@,$(IT)) | 541 @$(call LOG_TIME_AND_SIZE,$@,$(IT)) |
OLD | NEW |