Subversion Repositories Kolibri OS

Rev

Rev 9337 | Rev 9339 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 9337 Rev 9338
Line 169... Line 169...
169
    thread = Thread(target = run_tests_serially_thread, args = (tests, root_dir))
169
    thread = Thread(target = run_tests_serially_thread, args = (tests, root_dir))
170
    thread.start()
170
    thread.start()
171
    return thread
171
    return thread
Line 172... Line 172...
172
 
172
 
173
def gcc(fin, fout):
173
def gcc(fin, fout):
174
    flags = "-m32 -std=c11 -g -O0 -masm=intel -fno-pie -w"
174
    flags = "-m32 -std=c11 -g -O0 -fno-pie -w" # -masm-intel
175
    defines = "-D_FILE_OFFSET_BITS=64 -DNDEBUG -D_POSIX_C_SOURCE=200809L"
175
    defines = "-D_FILE_OFFSET_BITS=64 -DNDEBUG -D_POSIX_C_SOURCE=200809L"
176
    include = "-Iumka -Iumka/linux"
176
    include = "-Iumka -Iumka/linux"
177
    command = f"gcc {flags} {defines} {include} -c {fin} -o {fout}"
177
    command = f"clang {flags} {defines} {include} -c {fin} -o {fout}"
178
    print(command)
178
    print(command)
Line 179... Line 179...
179
    os.system(command)
179
    os.system(command)
180
 
180
 
Line 193... Line 193...
193
    if os.path.exists("umka_shell"):
193
    if os.path.exists("umka_shell"):
194
        return
194
        return
195
    os.makedirs("umka/build/linux", exist_ok = True)
195
    os.makedirs("umka/build/linux", exist_ok = True)
196
    sources = [ "umka_shell.c", 
196
    sources = [ "umka_shell.c", 
197
                "shell.c",
197
                "shell.c",
198
                "trace.c",
-
 
199
                "trace_lbr.c",
-
 
200
                "vdisk.c",
198
                "vdisk.c",
201
                "lodepng.c",
199
                "lodepng.c",
202
                "linux/pci.c",
200
                "linux/pci.c",
203
                "linux/thread.c" ]
201
                "linux/thread.c" ]
204
    sources = [f"umka/{f}" for f in sources]
202
    sources = [f"umka/{f}" for f in sources]