aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorDong-hee Na <donghee.na92@gmail.com>2019-05-02 00:40:09 +0900
committerAndrew Kelley <andrew@ziglang.org>2019-05-01 16:11:08 -0400
commitc00c18de6a5e436b1c362c06d6e5259c8f731a90 (patch)
treea8c80c1687cd4cc5e354465e71f2d9ab6e013b1e /src/main.cpp
parent6e4f69a54a976efd2d5203a848deeffcd7891f62 (diff)
downloadzig-c00c18de6a5e436b1c362c06d6e5259c8f731a90.tar.gz
zig-c00c18de6a5e436b1c362c06d6e5259c8f731a90.zip
main: change --enable-pic and --disable-pic to -fPIC and -fno-PIC
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main.cpp b/src/main.cpp
index fd1061107e..2915fd4b9d 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -54,11 +54,11 @@ static int print_full_usage(const char *arg0, FILE *file, int return_code) {
" --cache [auto|off|on] build in cache, print output path to stdout\n"
" --color [auto|off|on] enable or disable colored error messages\n"
" --disable-gen-h do not generate a C header file (.h)\n"
- " --disable-pic disable Position Independent Code\n"
- " --enable-pic enable Position Independent Code\n"
" --disable-valgrind omit valgrind client requests in debug builds\n"
" --enable-valgrind include valgrind client requests release builds\n"
" --emit [asm|bin|llvm-ir] emit a specific file format as compilation output\n"
+ " -fPIC enable Position Independent Code\n"
+ " -fno-PIC disable Position Independent Code\n"
" -ftime-report print timing diagnostics\n"
" --libc [file] Provide a file which specifies libc paths\n"
" --name [name] override output name\n"
@@ -642,9 +642,9 @@ int main(int argc, char **argv) {
valgrind_support = ValgrindSupportEnabled;
} else if (strcmp(arg, "--disable-valgrind") == 0) {
valgrind_support = ValgrindSupportDisabled;
- } else if (strcmp(arg, "--enable-pic") == 0) {
+ } else if (strcmp(arg, "-fPIC") == 0) {
want_pic = WantPICEnabled;
- } else if (strcmp(arg, "--disable-pic") == 0) {
+ } else if (strcmp(arg, "-fno-PIC") == 0) {
want_pic = WantPICDisabled;
} else if (strcmp(arg, "--system-linker-hack") == 0) {
system_linker_hack = true;