Mercurial > hg > Members > innparusu > xv6-rpi
comparison src/CMakeLists.txt @ 45:5f19e9554c30
supless warning
author | k.fukuda |
---|---|
date | Sun, 03 Mar 2019 17:39:05 +0900 |
parents | b94d72292dfa |
children | 233a68a261fe |
comparison
equal
deleted
inserted
replaced
43:b94d72292dfa | 45:5f19e9554c30 |
---|---|
6 # add_definitions("-Wall -g -O") | 6 # add_definitions("-Wall -g -O") |
7 | 7 |
8 set(CMAKE_C_COMPILER $ENV{CBC_COMPILER}) | 8 set(CMAKE_C_COMPILER $ENV{CBC_COMPILER}) |
9 add_definitions("-Wall -g -arch arm -fno-pic -static -fno-builtin -fno-strict-aliasing -Wall -Werror -I. -g -O0 | 9 add_definitions("-Wall -g -arch arm -fno-pic -static -fno-builtin -fno-strict-aliasing -Wall -Werror -I. -g -O0 |
10 -Wno-macro-redefined -Wno-gnu-designator -Wno-sometimes-uninitialized -Wno-tautological-compare | 10 -Wno-macro-redefined -Wno-gnu-designator -Wno-sometimes-uninitialized -Wno-tautological-compare |
11 -I/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include") | 11 -I/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include |
12 -Wno-nullability-completeness -Wno-expansion-to-defined") | |
12 | 13 |
13 # -DCMAKE_BUILD_TYPE=Debug | 14 # -DCMAKE_BUILD_TYPE=Debug |
14 set(CMAKE_C_FLAGS_DEBUG "-O0") | 15 set(CMAKE_C_FLAGS_DEBUG "-O0") |
16 set(CMAKE_EXE_LINKER_FLAGS "-L. -arch armv7 -T kernel.ld -o kernel.elf ") | |
15 | 17 |
16 if (${USE_CUDA}) | 18 if (${USE_CUDA}) |
17 include_directories("/usr/local/cuda/include") | 19 include_directories("/usr/local/cuda/include") |
18 set(NVCCFLAG "-std=c++11" "-g" "-O0" ) | 20 set(NVCCFLAG "-std=c++11" "-g" "-O0" ) |
19 if (UNIX AND NOT APPLE) # LINUX | 21 if (UNIX AND NOT APPLE) # LINUX |
70 | 72 |
71 GearsCommand( | 73 GearsCommand( |
72 TARGET | 74 TARGET |
73 kernel | 75 kernel |
74 SOURCES | 76 SOURCES |
75 lib/string.c arm.c asm.S bio.c buddy.c console.cbc exec.c file.c fs.c log.c main.c memide.c pipe.c proc.c spinlock.c | 77 lib/string.c arm.c asm.S bio.c buddy.c console.c exec.c file.c fs.c log.c main.c memide.c pipe.c proc.c spinlock.c |
76 start.c swtch.S syscall.c sysfile.c sysproc.c trap_asm.S trap.c vm.c device/picirq.c device/timer.c device/uart.c | 78 start.c swtch.S syscall.c sysfile.c sysproc.c trap_asm.S trap.c vm.c device/picirq.c device/timer.c device/uart.c |
77 entry-osx.S | 79 entry-osx.S |
78 ) | 80 ) |
79 | 81 |
80 | 82 |