2
0
Fork 0
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:
irengrig 2019-01-31 15:42:37 +01:00 committed by GitHub
parent 91ba4441d2
commit b2ac19e790
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,
}