diff options
| author | ruki <[email protected]> | 2020-02-21 00:36:37 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-02-20 21:39:44 +0800 |
| commit | 6304f7d221ce28d51f4651e8db0951e3ccaf53b5 (patch) | |
| tree | f52e8c9d37953d6bbc8602cad23e68df14dbf44a /xmake/modules/private/action/trybuild/xcodebuild.lua | |
| parent | 872f3e8c83f3c58606b32860274216f7d74a0771 (diff) | |
check config platform for trybuild
Diffstat (limited to 'xmake/modules/private/action/trybuild/xcodebuild.lua')
| -rw-r--r-- | xmake/modules/private/action/trybuild/xcodebuild.lua | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/xmake/modules/private/action/trybuild/xcodebuild.lua b/xmake/modules/private/action/trybuild/xcodebuild.lua index 0637dcb40..00d915a68 100644 --- a/xmake/modules/private/action/trybuild/xcodebuild.lua +++ b/xmake/modules/private/action/trybuild/xcodebuild.lua @@ -20,6 +20,7 @@ -- imports import("core.base.option") +import("core.project.config") import("lib.detect.find_directory") -- detect build-system and configuration file @@ -31,11 +32,17 @@ end -- do clean function clean() + os.exec("xcodebuild clean CODE_SIGN_IDENTITY=\"\" CODE_SIGNING_REQUIRED=NO") end -- do build function build() - os.exec("xcodebuild clean build CODE_SIGN_IDENTITY=\"\" CODE_SIGNING_REQUIRED=NO") + + -- only support the current subsystem host platform now! + assert(is_subhost(config.plat()), "xcodebuild: %s not supported!", config.plat()) + + -- do build + os.exec("xcodebuild build CODE_SIGN_IDENTITY=\"\" CODE_SIGNING_REQUIRED=NO") cprint("${bright}build ok!") end |
