LinuxPlatform: can specify -clang with -hlc to use clang instead of gcc
This commit is contained in:
@@ -227,7 +227,8 @@ class LinuxPlatform extends PlatformTarget
|
||||
|
||||
if (project.targetFlags.exists("hlc"))
|
||||
{
|
||||
var command = ["gcc", "-O3", "-o", executablePath, "-std=c11", "-Wl,-rpath,$ORIGIN", "-I", Path.combine(targetDirectory, "obj"), Path.combine(targetDirectory, "obj/ApplicationMain.c"), "-L", applicationDirectory];
|
||||
var compiler = project.targetFlags.exists("clang") ? "clang" : "gcc";
|
||||
var command = [compiler, "-O3", "-o", executablePath, "-std=c11", "-Wl,-rpath,$ORIGIN", "-I", Path.combine(targetDirectory, "obj"), Path.combine(targetDirectory, "obj/ApplicationMain.c"), "-L", applicationDirectory];
|
||||
for (file in System.readDirectory(applicationDirectory))
|
||||
{
|
||||
switch Path.extension(file)
|
||||
|
||||
Reference in New Issue
Block a user