@@ -10,7 +10,7 @@ set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../../../cmake)
10
10
11
11
include (DaemonPlatform/Platform )
12
12
13
- #FIXME: What to do with it ?
13
+ #FIXME: What to do with this ?
14
14
set (CPPPATH "${CMAKE_BINARY_DIR} /gen" )
15
15
16
16
# normally comment out -- uncomment out to test the pedantic removal
@@ -122,9 +122,9 @@ elseif (ARCH STREQUAL "amd64")
122
122
123
123
#TODO: AMD64_ZERO_BASED_SANDBOX = env.Bit('x86_64_zero_based_sandbox')
124
124
if (AMD64_ZERO_BASED_SANDBOX )
125
- #TODO: env.Append(CPPDEFINES=['-DNACL_X86_64_ZERO_BASED_SANDBOX=1'])
125
+ #TODO: env.Append(CPPDEFINES=['-DNACL_X86_64_ZERO_BASED_SANDBOX=1'])
126
126
else ()
127
- #TODO: env.Append(CPPDEFINES=['-DNACL_X86_64_ZERO_BASED_SANDBOX=0'])
127
+ #TODO: env.Append(CPPDEFINES=['-DNACL_X86_64_ZERO_BASED_SANDBOX=0'])
128
128
endif ()
129
129
endif ()
130
130
elseif (ARCH STREQUAL "armhf" )
@@ -265,9 +265,9 @@ if (LINUX)
265
265
# nacl_signal.c needs to be compiled without the stack protector
266
266
# on i386.
267
267
# See https://code.google.com/p/nativeclient/issues/detail?id=3581.
268
- #TODO: nacl_signal_env.FilterOut(CCFLAGS=['-fstack-protector', '-fstack-protector-all'])
269
- #TODO: nacl_signal_env.Append(CCFLAGS=['-fno-stack-protector'])
270
- #TODO: NACL_SIGNAL_OBJ = nacl_signal_env.ComponentObject('linux/nacl_signal.c')])
268
+ #TODO: nacl_signal_env.FilterOut(CCFLAGS=['-fstack-protector', '-fstack-protector-all'])
269
+ #TODO: nacl_signal_env.Append(CCFLAGS=['-fno-stack-protector'])
270
+ #TODO: NACL_SIGNAL_OBJ = nacl_signal_env.ComponentObject('linux/nacl_signal.c')])
271
271
set (LDR_INPUTS ${LDR_INPUTS} ${NACL_SIGNAL_OBJ} )
272
272
endif ()
273
273
endif ()
@@ -327,10 +327,10 @@ if (WIN32)
327
327
kernel32
328
328
advapi32
329
329
winmm
330
- # TODO(gregoryd): ntdll.lib is required for sem_get_value implementation but
331
- # it is available in Windows DDK only. The DDK is not
332
- # in third_party, but we might need to add it if we want to use it.
333
- # ntdll
330
+ # TODO(gregoryd): ntdll.lib is required for sem_get_value implementation but
331
+ # it is available in Windows DDK only. The DDK is not
332
+ # in third_party, but we might need to add it if we want to use it.
333
+ # ntdll
334
334
)
335
335
endif ()
336
336
@@ -413,7 +413,7 @@ if (LINUX AND NOT BUILD_ELSEWHERE)
413
413
414
414
set (COMPILER_OVERRIDE '' )
415
415
416
- if (SYSTEM_amd64 )
416
+ if (ARCH STREQUAL "amd64" )
417
417
set (LD_EMUL 'elf_x86_64' )
418
418
419
419
#TODO: AMD64_ZERO_BASED_SANDBOX = env.Bit('x86_64_zero_based_sandbox')
@@ -445,16 +445,16 @@ if (LINUX AND NOT BUILD_ELSEWHERE)
445
445
else ()
446
446
set (reserve_top '0x0' )
447
447
endif ()
448
- elseif (SYSTEM_i686 )
448
+ elseif (ARCH STREQUAL "i686" )
449
449
set (LD_EMUL 'elf_i386' )
450
450
set (RESERVE_TOP '0x40000000' )
451
- elseif (SYSTEM_armhf )
452
- set (ld_emul 'armelf_linux_eabi' )
453
- set (reserve_top '0x40002000' )
454
- set (compiler_override '--compiler arm-linux-gnueabihf-gcc' )
455
- elseif (SYSTEM_mips32 )
456
- set (ld_emul 'elf32ltsmip' )
457
- set (reserve_top '0x40008000' )
451
+ elseif (ARCH STREQUAL "armhf" )
452
+ set (LD_EMUL 'armelf_linux_eabi' )
453
+ set (RESERVE_TOP '0x40002000' )
454
+ set (COMPILER_OVERRIDE '--compiler arm-linux-gnueabihf-gcc' )
455
+ elseif (ARCH STREQUAL "mips32" )
456
+ set (LD_EMOUL 'elf32ltsmip' )
457
+ set (RESERVE_TOP '0x40008000' )
458
458
endif ()
459
459
460
460
#TODO: bootstrap_obj = bootstrap_env.ComponentObject('linux/nacl_bootstrap.c')
0 commit comments