commit | 2932fc556fdf65fc2fa3f9992937a346a54088af | [log] [tgz] |
---|---|---|
author | Googler <noreply@google.com> | Thu Feb 09 14:25:11 2023 +0000 |
committer | David Goldman <davg@google.com> | Fri Sep 01 15:07:36 2023 +0000 |
tree | f377073a57205527aec861f36d5636ed891e3108 | |
parent | 95c831c723e0fb00dc1997178d8f0c3fcc1ce225 [diff] |
Disable C++ toolchain resolution in Tulsi end-to-end tests The mocks for C++ toolchain resolution are complex. PiperOrigin-RevId: 508356482
Run build_and_run.sh
. This will install Tulsi.app inside $HOME/Applications
by default. See below for supported options:
-b
: Bazel binary that Tulsi should use to build and install the app (Default is bazel
)-d
: The folder where to install the Tulsi app into (Default is $HOME/Applications
)-x
: The Xcode version Tulsi should be built for (Default is 13.4.1
)Tulsi-generated Xcode projects use Bazel to build, not Xcode. Building in Xcode will cause it to only run a script; the script invokes Bazel to build the configured Bazel target and copies the artifacts to where Xcode expects them to be. This means that many common components of an Xcode project are handled differently than you may be used to. Notable differences:
bazel
invocations, some of which may affect Bazel caching. In order to maximize cache re-use when building from the command line, try using the user_build.py
script which is located in the generated xcodeproj at <xcodeproj>/.tulsi/Scripts/user_build.py
.Tulsi projects contain a few settings which control various behaviors during project generation and builds.
build
flags, customizable per compilation mode (dbg
and opt
)build
startup flags, also customizable per compilation modedbg
or opt
, no fastbuild
) used during project generation.dbg
, swap to opt
if you normally build Release builds in Xcode (i.e. profiling your app). Setting this improperly shouldn't break your project although it may potentially worsen generation and build performance.No
, swap to Yes
if your project contains Swift (even in its dependencies). Setting this improperly shouldn't break your project although it may potentially worsen generation and build performance.