Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1158)

Unified Diff: src/trusted/service_runtime/sel_validate_image.c

Issue 10174016: link with validator_ragel only in standalone binaries (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: indentation Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/trusted/service_runtime/arch/x86/service_runtime_x86.gyp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/trusted/service_runtime/sel_validate_image.c
diff --git a/src/trusted/service_runtime/sel_validate_image.c b/src/trusted/service_runtime/sel_validate_image.c
index 5b30195b388942ba310e2fbe74fd8e8d3d3155d2..197c98ddcbfcf1c8b73ed6c2a26096cd549be40d 100644
--- a/src/trusted/service_runtime/sel_validate_image.c
+++ b/src/trusted/service_runtime/sel_validate_image.c
@@ -34,7 +34,8 @@ typedef NaClValidationStatus (*ValidateFunc) (
static ValidateFunc NaClSelectValidator(struct NaClApp *nap) {
ValidateFunc ret = NACL_SUBARCH_NAME(ApplyValidator,
NACL_TARGET_ARCH, NACL_TARGET_SUBARCH);
-#ifdef __arm__
+ /* Avoid linking two validators into Chromium to keep download size small. */
+#if defined(__arm__) || !defined(NACL_STANDALONE)
UNREFERENCED_PARAMETER(nap);
#else
if (nap->enable_dfa_validator) {
« no previous file with comments | « src/trusted/service_runtime/arch/x86/service_runtime_x86.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698