mirror of
https://github.com/bazel-contrib/rules_foreign_cc
synced 2024-11-25 17:31:25 +00:00
Pass through the os_name() from a custom shell toolchain to CMake (#215)
This commit is contained in:
parent
91ba4441d2
commit
b2ac19e790
|
@ -178,11 +178,13 @@ def _move_dict_values(target, source, descriptor_map):
|
|||
target[existing.value] = target[existing.value] + " " + value
|
||||
|
||||
def _fill_crossfile_from_toolchain(workspace_name, target_os, tools, flags):
|
||||
os_name = "Linux"
|
||||
os_name = target_os
|
||||
if target_os == "windows":
|
||||
os_name = "Windows"
|
||||
if target_os == "osx":
|
||||
os_name = "Apple"
|
||||
if target_os == "linux":
|
||||
os_name = "Linux"
|
||||
dict = {
|
||||
"CMAKE_SYSTEM_NAME": os_name,
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue