The build.py script always runs the compiler in C++ mode, regardless of the file extension. This results in mangled names presented to the linker which in turn cannot find the printf symbol. While we figure out how to solve this issue I've turned the source file into a cpp file and added extern c. This should unbreak the bots. llvm-svn: 349642
12 lines
328 B
C++
12 lines
328 B
C++
// The build.py script always runs the compiler in C++ mode, regardless of the
|
|
// file extension. This results in mangled names presented to the linker which
|
|
// in turn cannot find the printf symbol.
|
|
extern "C" {
|
|
int printf(const char *format, ...);
|
|
|
|
int main(int argc, char **argv) {
|
|
printf("Hello World\n");
|
|
return 0;
|
|
}
|
|
}
|