1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 20:51:52 +01:00

Address Peter's comments.

This commit is contained in:
Mitch Phillips 2020-05-27 09:38:44 -07:00
parent 8e0a0632f6
commit 0d12bc0c5c
2 changed files with 3 additions and 9 deletions

View File

@ -1,19 +1,13 @@
import("//llvm/utils/gn/build/libs/pthread/enable.gni")
config("pthread_config") {
visibility = [ ":pthread" ]
libs = [ "pthread" ]
}
config("pthread_link_time_config") {
visibility = [ ":pthread" ]
ldflags = [ "-pthread" ]
}
group("pthread") {
# On Android, bionic has built-in support for pthreads.
if (llvm_enable_threads && current_os != "win" && current_os != "android") {
public_configs = [ ":pthread_config" ]
all_dependent_configs = [ ":pthread_link_time_config" ]
if (llvm_enable_threads && current_os != "win") {
all_dependent_configs = [ ":pthread_config" ]
}
}

View File

@ -88,7 +88,7 @@ template("unix_toolchain") {
if (current_os == "mac") {
command = "$ld {{ldflags}} -o $outfile {{inputs}} {{libs}}"
} else {
command = "$ld {{ldflags}} -o $outfile -Wl,--start-group {{inputs}} {{libs}} -Wl,--end-group"
command = "$ld {{ldflags}} -o $outfile -Wl,--start-group {{libs}} {{inputs}} -Wl,--end-group"
}
description = "LINK $outfile"
outputs = [ outfile ]