Browse Source

merge partial clang16 support

pg 1 year ago
parent
commit
8662d99f68
1 changed files with 3 additions and 0 deletions
  1. 3 0
      build/scripts/link_exe.py

+ 3 - 0
build/scripts/link_exe.py

@@ -166,6 +166,9 @@ if __name__ == '__main__':
 
     cmd = fix_sanitize_flag(cmd)
 
+    if 'ld.lld' in str(cmd):
+        cmd.append('-Wl,-no-pie')
+
     if opts.dynamic_cuda:
         cmd = fix_cmd_for_dynamic_cuda(cmd)
     cmd = ProcessWholeArchiveOption(opts.arch, opts.whole_archive_peers, opts.whole_archive_libs).construct_cmd(cmd)