| 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 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 282 ###################################################################### | 282 ###################################################################### |
| 283 # BITCODE - FRONTEND | 283 # BITCODE - FRONTEND |
| 284 | 284 |
| 285 ifdef NACL_ENABLE_INSECURE_ZERO_BASED_SANDBOX | 285 ifdef NACL_ENABLE_INSECURE_ZERO_BASED_SANDBOX |
| 286 EXTRA_TRANSLATOR_FLAGS=-sfi-zero-based-sandbox | 286 EXTRA_TRANSLATOR_FLAGS=-sfi-zero-based-sandbox |
| 287 else | 287 else |
| 288 EXTRA_TRANSLATOR_FLAGS= | 288 EXTRA_TRANSLATOR_FLAGS= |
| 289 endif | 289 endif |
| 290 | 290 |
| 291 PNACL_TRANSLATOR_FLAGS_FAST=-translate-fast | 291 PNACL_TRANSLATOR_FLAGS_FAST=-translate-fast |
| 292 PNACL_SZ_FLAGS=--use-sz -O2 |
| 292 | 293 |
| 293 PNACL_BIN=$(PNACL_ROOT)/bin | 294 PNACL_BIN=$(PNACL_ROOT)/bin |
| 294 # Sandboxed translation uses the standalone translator install (which only | 295 # Sandboxed translation uses the standalone translator install (which only |
| 295 # supports sandboxed translation). This allows it to run on the arm hardware | 296 # supports sandboxed translation). This allows it to run on the arm hardware |
| 296 # bots, which have no native toolchain build. | 297 # bots, which have no native toolchain build. |
| 297 PNACL_TRANSLATOR=$(TIME_TRANSLATE) $(PNACL_BIN)/pnacl-translate \ | 298 PNACL_TRANSLATOR=$(TIME_TRANSLATE) $(PNACL_BIN)/pnacl-translate \ |
| 298 $(EXTRA_TRANSLATOR_FLAGS) | 299 $(EXTRA_TRANSLATOR_FLAGS) |
| 299 PNACL_TRANSLATOR_SB=$(TIME_TRANSLATE) \ | 300 PNACL_TRANSLATOR_SB=$(TIME_TRANSLATE) \ |
| 300 $(PNACL_TRANSLATOR_ROOT)/bin/pnacl-translate --pnacl-sb | 301 $(PNACL_TRANSLATOR_ROOT)/bin/pnacl-translate --pnacl-sb |
| 301 PNACL_TRANSLATOR_SB_EMU=$(PNACL_TRANSLATOR_SB) --pnacl-use-emulator \ | 302 PNACL_TRANSLATOR_SB_EMU=$(PNACL_TRANSLATOR_SB) --pnacl-use-emulator \ |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 398 # BITCODE - BACKEND - X8632 (sandboxed and non-sandboxed translators) | 399 # BITCODE - BACKEND - X8632 (sandboxed and non-sandboxed translators) |
| 399 | 400 |
| 400 $(IT).pnacl.x8632: $(IT).unopt.stripped.pexe | 401 $(IT).pnacl.x8632: $(IT).unopt.stripped.pexe |
| 401 $(PNACL_TRANSLATOR) $(PNACL_FLAGS) $^ -o $@ -arch x86-32 | 402 $(PNACL_TRANSLATOR) $(PNACL_FLAGS) $^ -o $@ -arch x86-32 |
| 402 @$(call LOG_TIME_AND_SIZE,$@,$(IT)) | 403 @$(call LOG_TIME_AND_SIZE,$@,$(IT)) |
| 403 | 404 |
| 404 $(IT).pnacl.opt.x8632: $(IT).opt.stripped.pexe | 405 $(IT).pnacl.opt.x8632: $(IT).opt.stripped.pexe |
| 405 $(PNACL_TRANSLATOR) $(PNACL_FLAGS) $^ -o $@ -arch x86-32 | 406 $(PNACL_TRANSLATOR) $(PNACL_FLAGS) $^ -o $@ -arch x86-32 |
| 406 @$(call LOG_TIME_AND_SIZE,$@,$(IT)) | 407 @$(call LOG_TIME_AND_SIZE,$@,$(IT)) |
| 407 | 408 |
| 409 $(IT).pnacl.opt.sz.x8632: $(IT).opt.stripped.pexe |
| 410 $(PNACL_TRANSLATOR) $(PNACL_FLAGS) $(PNACL_SZ_FLAGS) $^ \ |
| 411 -o $@ -arch x86-32 |
| 412 @$(call LOG_TIME_AND_SIZE,$@,$(IT)) |
| 413 |
| 408 $(IT).pnacl_translator.x8632: $(IT).unopt.stripped.pexe | 414 $(IT).pnacl_translator.x8632: $(IT).unopt.stripped.pexe |
| 409 $(PNACL_TRANSLATOR_SB) $(PNACL_FLAGS) $^ -o $@ -arch x86-32 | 415 $(PNACL_TRANSLATOR_SB) $(PNACL_FLAGS) $^ -o $@ -arch x86-32 |
| 410 @$(call LOG_TIME_AND_SIZE,$@,$(IT)) | 416 @$(call LOG_TIME_AND_SIZE,$@,$(IT)) |
| 411 | 417 |
| 412 $(IT).pnacl_translator.opt.x8632: $(IT).opt.stripped.pexe | 418 $(IT).pnacl_translator.opt.x8632: $(IT).opt.stripped.pexe |
| 413 $(PNACL_TRANSLATOR_SB) $(PNACL_FLAGS) $^ -o $@ -arch x86-32 | 419 $(PNACL_TRANSLATOR_SB) $(PNACL_FLAGS) $^ -o $@ -arch x86-32 |
| 414 @$(call LOG_TIME_AND_SIZE,$@,$(IT)) | 420 @$(call LOG_TIME_AND_SIZE,$@,$(IT)) |
| 415 | 421 |
| 422 $(IT).pnacl_translator.opt.sz.x8632: $(IT).opt.stripped.pexe |
| 423 $(PNACL_TRANSLATOR_SB) $(PNACL_FLAGS) $(PNACL_SZ_FLAGS) $^ \ |
| 424 -o $@ -arch x86-32 |
| 425 @$(call LOG_TIME_AND_SIZE,$@,$(IT)) |
| 426 |
| 416 $(IT).pnacl_translator_fast.opt.x8632: $(IT).opt.stripped.pexe | 427 $(IT).pnacl_translator_fast.opt.x8632: $(IT).opt.stripped.pexe |
| 417 $(PNACL_TRANSLATOR_SB) $(PNACL_FLAGS) $(PNACL_TRANSLATOR_FLAGS_FAST) \ | 428 $(PNACL_TRANSLATOR_SB) $(PNACL_FLAGS) $(PNACL_TRANSLATOR_FLAGS_FAST) \ |
| 418 $^ -o $@ -arch x86-32 | 429 $^ -o $@ -arch x86-32 |
| 419 @$(call LOG_TIME_AND_SIZE,$@,$(IT)) | 430 @$(call LOG_TIME_AND_SIZE,$@,$(IT)) |
| 420 | 431 |
| 421 $(IT).pnacl_translator_1thread.opt.x8632: $(IT).opt.stripped.pexe | 432 $(IT).pnacl_translator_1thread.opt.x8632: $(IT).opt.stripped.pexe |
| 422 $(PNACL_TRANSLATOR_SB) $(PNACL_FLAGS) $^ -o $@ -arch x86-32 \ | 433 $(PNACL_TRANSLATOR_SB) $(PNACL_FLAGS) $^ -o $@ -arch x86-32 \ |
| 423 -split-module=1 | 434 -split-module=1 |
| 424 @$(call LOG_TIME_AND_SIZE,$@,$(IT)) | 435 @$(call LOG_TIME_AND_SIZE,$@,$(IT)) |
| 425 | 436 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 455 | 466 |
| 456 $(IT).pnacl_translator_1thread.opt.x8664: $(IT).opt.stripped.pexe | 467 $(IT).pnacl_translator_1thread.opt.x8664: $(IT).opt.stripped.pexe |
| 457 $(PNACL_TRANSLATOR_SB) $(PNACL_FLAGS) $^ -o $@ -arch x86-64 \ | 468 $(PNACL_TRANSLATOR_SB) $(PNACL_FLAGS) $^ -o $@ -arch x86-64 \ |
| 458 -split-module=1 | 469 -split-module=1 |
| 459 @$(call LOG_TIME_AND_SIZE,$@,$(IT)) | 470 @$(call LOG_TIME_AND_SIZE,$@,$(IT)) |
| 460 | 471 |
| 461 $(IT).pnacl_translator_fast_1thread.opt.x8664: $(IT).opt.stripped.pexe | 472 $(IT).pnacl_translator_fast_1thread.opt.x8664: $(IT).opt.stripped.pexe |
| 462 $(PNACL_TRANSLATOR_SB) $(PNACL_FLAGS) $(PNACL_TRANSLATOR_FLAGS_FAST) \ | 473 $(PNACL_TRANSLATOR_SB) $(PNACL_FLAGS) $(PNACL_TRANSLATOR_FLAGS_FAST) \ |
| 463 $^ -o $@ -arch x86-64 -split-module=1 | 474 $^ -o $@ -arch x86-64 -split-module=1 |
| 464 @$(call LOG_TIME_AND_SIZE,$@,$(IT)) | 475 @$(call LOG_TIME_AND_SIZE,$@,$(IT)) |
| OLD | NEW |